/* Cairo Font Application */
* {
  padding: 0;
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Arabic Text Optimization */
body, html {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
}

p, span, div, a, button, input, textarea, select {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 3px;
}
*::-webkit-scrollbar-thumb {
  background-color: #ff0033;
  border-radius: 20px;
  border: 0px solid #f5f5f5;
}
*::-webkit-scrollbar-track {
  background: #0a0909;
  border-radius: 5px;
}
.background-frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  z-index: -1; /* يخليه خلف كل العناصر */
}

/* eeeee */
body {
  margin: 0;
  padding: 0;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.3px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: auto;
  min-height: 100vh;
}

/* Cairo Font Enhancements */
.cairo-light { font-weight: 300; }
.cairo-regular { font-weight: 400; }
.cairo-medium { font-weight: 500; }
.cairo-semibold { font-weight: 600; }
.cairo-bold { font-weight: 700; }
.cairo-extrabold { font-weight: 800; }
.cairo-black { font-weight: 900; }

/* Arabic Text Optimization */
.arabic-text {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: right;
  direction: rtl;
  line-height: 1.8;
  letter-spacing: 0.2px;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

h1 { font-weight: 700; font-size: 2.5rem; }
h2 { font-weight: 600; font-size: 2rem; }
h3 { font-weight: 600; font-size: 1.5rem; }
h4 { font-weight: 500; font-size: 1.2rem; }
h5 { font-weight: 500; font-size: 1rem; }
h6 { font-weight: 500; font-size: 0.9rem; }

/* Button and Input Enhancement */
button, .btn, input, textarea, select {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Paragraph and Text Enhancement */
p, span, div, a, label {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* Flash Messages */
.flash-messages {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1002;
  width: 90%;
  max-width: 500px;
}

.alert {
  position: relative;
  padding: 15px 45px 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: slideInDown 0.3s ease-out;
}

.alert-success {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: 1px solid #1e7e34;
  color: #fff;
}

.alert-error {
  background: linear-gradient(135deg, #dc3545, #c82333);
  border: 1px solid #bd2130;
  color: #fff;
}

.alert-warning {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  border: 1px solid #d39e00;
  color: #212529;
}

.alert-info {
  background: linear-gradient(135deg, #17a2b8, #138496);
  border: 1px solid #117a8b;
  color: #fff;
}

.alert button {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: inherit;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.alert button:hover {
  opacity: 1;
}

@keyframes slideInDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  margin: 10% auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease-out;
}

.close {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: #ff0033;
}

.auth-form {
  text-align: center;
}

.auth-form h2 {
  margin-bottom: 25px;
  color: #fff;
  font-size: 24px;
}

.auth-form input {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.auth-form input:focus {
  outline: none;
  border-color: #ff0033;
  background: rgba(255, 255, 255, 0.1);
}

.auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.auth-form button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #ff0033, #ff6b6b);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.auth-form button:hover {
  background: linear-gradient(135deg, #e60029, #ff5252);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 0, 51, 0.4);
}

.auth-form p {
  margin-top: 20px;
  color: #ccc;
  font-size: 14px;
}

.auth-form a {
  color: #ff0033;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.auth-form a:hover {
  color: #ff3366;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* تحسينات إضافية للهيدر */
.header {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  padding: 0;
  box-shadow: 0 4px 20px rgba(255, 0, 51, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* تأثيرات انتقالية للعناصر */
.header-left,
.header-center,
.header-right {
  animation: slideInFromTop 0.6s ease-out;
}

.header-left {
  animation-delay: 0.1s;
}

.header-center {
  animation-delay: 0.2s;
}

.header-right {
  animation-delay: 0.3s;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تحسين أداء أيقونة السلة */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.cart-count.animate {
  animation: pulse 0.3s ease-in-out;
}

/* تحسين تأثيرات hover */
.logo-image,
.cart-btn,
.menu-btn,
.support-icon,
.login-btn-header {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-image:hover {
  box-shadow: 0 8px 30px rgba(255, 0, 51, 0.4);
  transform: scale(1.05) rotate(2deg);
}

/* تحسين تنسيق العملة */
.currency-selector-wrapper select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  padding: 8px 25px 8px 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.currency-selector-wrapper select option {
  background: #1a1a1a;
  color: #fff;
  padding: 10px;
}

.currency-arrow {
  position: absolute;
  right: 8px;
  pointer-events: none;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.currency-selector-wrapper:hover .currency-arrow {
  transform: rotate(180deg);
}

/* تحسين شريط التنقل */
.nav-bar {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(17, 17, 17, 0.4) 50%, rgba(0, 0, 0, 0.3) 100%);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links a {
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 51, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-links a:hover::before {
  left: 100%;
}

/* تحسين الفوتر */
.footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  border-top: 2px solid rgba(255, 0, 51, 0.2);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff0033, transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 25px;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
}

.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-center {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 500px;
  margin: 0 20px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cart-btn:hover {
  background: rgba(255, 0, 51, 0.15);
  color: #ff0033;
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff0033;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.login-btn-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff0033 0%, #cc0028 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.3);
}

.login-btn-header:hover {
  background: linear-gradient(135deg, #cc0028 0%, #990020 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 0, 51, 0.5);
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
}

.menu-btn:hover {
  background: rgba(255, 0, 51, 0.15);
  color: #ff0033;
  transform: scale(1.1);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-dropdown a:last-child {
  border-bottom: none;
}

.user-dropdown a:hover {
  background: rgba(255, 0, 51, 0.1);
  color: #ff0033;
}

.support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.support-icon:hover {
  background: rgba(255, 0, 51, 0.15);
  color: #ff0033;
  transform: scale(1.1);
}

.icons,
.lang-currency,
.search-box,
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-image {
  width: 75px;
  height: 75px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.2);
  transition: all 0.3s ease;
}

.logo-image:hover {
  box-shadow: 0 6px 25px rgba(255, 0, 51, 0.4);
  transform: scale(1.05);
}

.bars-container {
  margin: 0 15px;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.bars-container:hover {
  background-color: rgba(255, 0, 51, 0.1);
  color: #ff0033;
  transform: scale(1.1);
}

.lang-currency {
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.lang-currency:hover {
  background: rgba(255, 0, 51, 0.1);
  border-color: rgba(255, 0, 51, 0.3);
  cursor: pointer;
  transform: translateY(-2px);
}

/* تحسين زر لوحة التحكم */
.admin-panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #ff0033 0%, #cc0028 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.3);
}

.admin-panel-btn:hover {
  background: linear-gradient(135deg, #cc0028 0%, #990020 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 0, 51, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
}

.admin-panel-btn i {
  font-size: 16px;
}

.icons {
  gap: 25px;
}

.logo {
  gap: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}
.logo .text {
  font-size: 40px;
  font-weight: 500;
}
.logo .house {
  font-size: 30px;
}
.icons i {
  font-size: 22px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.icons i:hover {
  background: rgba(255, 0, 51, 0.15);
  color: #ff0033;
  transform: scale(1.15);
}

.search-box {
  flex: 1;
  margin: 0 20px;
  position: relative;
  max-width: 450px;
}

.search-box input {
  padding: 14px 45px 14px 18px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-box input:focus {
  outline: none;
  border-color: #ff0033;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
}

.search-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  transition: color 0.3s ease;
}

.search-box:hover i {
  color: #ff0033;
}

/* bottom search box */
.bottom-search-box {
  margin: 15px 25px;
  position: relative;
  display: none;
}

.bottom-search-box input {
  padding: 14px 45px 14px 18px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.bottom-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.bottom-search-box input:focus {
  outline: none;
  border-color: #ff0033;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
}

.bottom-search-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  transition: color 0.3s ease;
}

.bottom-search-box:hover i {
  color: #ff0033;
}
/* bottom search box */

.logo {
  font-size: 20px;
  font-weight: bold;
}
.logo i {
  color: #ff0033;
  font-size: 30px;
  margin: 0 5px;
}

.nav-bar {
  display: flex;
  align-items: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 50;
  overflow: hidden;
  width: 100%;
}

.menu {
  display: flex;
  background: linear-gradient(135deg, #ff0033 0%, #cc0028 100%);
  padding: 12px 20px;
  border-radius: 15px;
  margin-left: 15px;
  cursor: pointer;
  gap: 8px;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.3);
}

.menu:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 0, 51, 0.5);
}

.nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.nav-links a {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  flex-grow: 1;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.nav-links a:hover {
  background: rgba(255, 0, 51, 0.15);
  border-color: rgba(255, 0, 51, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.2);
}

.icon {
  font-size: 18px;
}

.right-side {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.global-container {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 12px;
  background: rgb(27, 27, 27);
  transition: all 0.3s ease;
}

.global-container:hover {
  border-color: rgba(255, 0, 51, 0.5);
  background: rgb(31, 28, 28);
}

.global-container i {
  color: #fff;
  font-size: 16px;
}

.currency-selector-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0 12px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.currency-selector-wrapper:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.2);
}

.currency-selector-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.1), rgba(255, 0, 51, 0.05));
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.currency-selector-wrapper:hover::before {
  opacity: 1;
}

.currency-selector-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 0, 51, 0.3);
}

.currency-selector-wrapper:focus-within .currency-arrow {
  transform: rotate(180deg);
  color: #ff0033;
}

/* تحسين مظهر الـ select في المتصفحات المختلفة */
#currency-selector::-ms-expand {
  display: none;
}

#currency-selector option:hover,
#currency-selector option:focus {
  background: rgba(255, 0, 51, 0.2) !important;
  color: #fff !important;
}

/* تأثير لتحديد العملة */
.currency-change-animation {
  animation: currencyPulse 0.8s ease-in-out;
}

@keyframes currencyPulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.05); background: rgba(255, 0, 51, 0.1); }
  50% { transform: scale(1.1); background: rgba(255, 0, 51, 0.2); }
  75% { transform: scale(1.05); background: rgba(255, 0, 51, 0.1); }
  100% { transform: scale(1); background: rgba(255, 255, 255, 0.08); }
}

/* تأثيرات تحديث الأسعار */
.price-updating {
  animation: priceUpdate 0.5s ease-in-out;
}

@keyframes priceUpdate {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); color: #ff0033; }
  100% { opacity: 1; transform: scale(1); }
}

/* تحسين عرض العملة */
.currency-display-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #ff0033;
}

.currency-symbol {
  font-size: 1.1em;
  font-weight: bold;
}

/* end header */

/* start home page */
.home-page {
  position: relative;
  height: 600px;
  padding-top: 60px;
  overflow: hidden;
}

.animated-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background-color: #000;
}

/* Swiper container */
.swiper {
  width: 95%;
  margin: auto;
  overflow: hidden !important; /* لمنع ظهور أي عناصر خارج الإطار */
}

/* Each slide */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  direction: rtl; /* ✅ المحتوى يفضل RTL */
  text-align: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  cursor: pointer;
  overflow: hidden;
}
.home-swiper a img {
  height: 350px !important;
  position: relative;
  overflow: hidden !important;
}

.home-swiper .swiper-slide {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden !important;
}

.home-product-discount {
  display: flex;
  justify-content: center;
  background-color: #ff0033;
  position: absolute;
  z-index: 1000000;
  width: 80px;
  height: 50px;
  clip-path: polygon(
    30% 0%,
    70% 0%,
    100% 0,
    100% 61%,
    52% 100%,
    53% 100%,
    0 62%,
    0 0
  );
  top: 0;
}

.home-product-bottom {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100px;
  /* padding-right: 20px; */
  background: linear-gradient(to left, #ff512f, #dd2476);
  width: 100% !important;
  overflow: hidden !important;
}
.play-more {
  font-size: 30px;
  overflow: hidden;
}
.home-product-bottom img {
  width: 70px !important;
  height: 70px;
  overflow: hidden;
}

.home-product-discount p {
  font-size: 25px;
  font-weight: 500;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

.swiper-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: -95%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  overflow: hidden;
  border-radius: 10px;
}

/* عند تمرير الماوس */
.swiper-slide:hover::before {
  animation: shimmer 0.5s ease-in-out;
}

@keyframes shimmer {
  0% {
    left: -95%;
  }
  100% {
    left: 125%;
  }
}

.custom-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px auto;
  width: 100%;
  position: absolute;
  top: 40%;
  z-index: 100000;
}

.custom-navigation i {
  color: #5a5858;
  font-size: 20px;
}

.custom-prev,
.custom-next {
  background-color: white;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 100000;
}

.custom-prev:hover,
.custom-next:hover {
  background-color: #7e7777;
  z-index: 100000;
}

.custom-prev:hover i,
.custom-next:hover i {
  color: white;
}

/* تنسيقات خاصة بالأقسام الفرعية في السلايدر */
.icon-slider .subcategory-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff0033, #cc0029);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.icon-slider .subcategory-icon i {
    font-size: 1.8rem;
    color: white;
}

.icon-slider .icon-box:hover .subcategory-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 0, 51, 0.3);
}

.icon-slider .icon-box a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.icon-slider .icon-box .parent-category {
    font-size: 0.7rem;
    color: #888;
    margin-top: 5px;
    display: block;
}

/* تحسين تصميم السلايدر للأقسام الفرعية */
.icon-slider .icon-box {
    text-align: center;
    padding: 15px 10px;
    transition: all 0.3s ease;
}

.icon-slider .icon-box:hover {
    transform: translateY(-5px);
}

.icon-slider .icon-box p {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    line-height: 1.2;
}

.icon-slider .icon-box img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.icon-slider .icon-box:hover img {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 0, 51, 0.2);
}

/* end home page */

/* start products page */
.products-container {
  padding: 50px 0px;
  background-color: #222222;
}

.products-title {
  padding-right: 3%;
  font-size: 30px;
  font-weight: 400;
  padding-bottom: 50px;
}

/* ===== تصميم كارت المنتج المحسن ===== */
.products-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.products-container .product-card {
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.products-container .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 0, 51, 0.2);
  border-color: rgba(255, 0, 51, 0.3);
}

.products-container .product-card a {
  text-decoration: none;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.products-container .product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.products-container .product-card:hover .product-image {
  transform: scale(1.05);
}

.card-details {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  border-radius: 0 0 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 2px;
  backdrop-filter: blur(10px);
}

.product-card-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  line-height: 1.4;
  min-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.product-global-symbol {
  color: #ff0033;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-global-symbol::before {
  content: "🌍";
  font-size: 16px;
}

.product-discounted-box {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  font-weight: 600;
  margin: 5px 0;
  flex-wrap: wrap;
}

.product-price {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.product-discounted-price {
  color: #888;
  text-decoration: line-through;
  font-size: 14px;
}

.product-discounted-percentage {
  background: linear-gradient(135deg, #ff0033, #cc0029);
  color: white;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 0, 51, 0.3);
}

/* زر إضافة للسلة */
.add-to-cart-btn {
  background: linear-gradient(135deg, #ff0033, #cc0029);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.3s ease;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.add-to-cart-btn:hover::before {
  left: 100%;
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #e60029, #990022);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 51, 0.4);
}

.add-to-cart-btn i {
  font-size: 16px;
}

/* تأثير التخفيض */
.products-container .product-card[data-has-discount="true"]::before {
  content: 'عرض خاص';
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* end products page */

/* start gift cards page */

.Gift-cards {
  background-color: #000;
  padding: 80px 0;
}

.tabs {
  padding-right: 2%;
  margin-bottom: 20px;
}

.tab {
  padding: 8px 12px;
  margin: 5px;
  border: none;
  background-color: #1d1d1d;
  cursor: pointer;
  border-radius: 15px;
  font-size: 16px;
  color: #a79e9e;
  font-weight: 500;
}

.tab.active {
  background-color: #292929;
  color: white;
  border: 0.8px solid rgb(72, 71, 71);
}

.items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.item {
  /* padding: 10px; */
  border-radius: 10px;
  min-width: 100px;
  text-align: center;
  transition: all 0.3s ease;
}

/* end gift cards page */

/* start product details page */

.top-product-details {
  padding: 30px 2%;

  background-image: linear-gradient(
      to bottom right,
      rgba(6, 3, 3, 0.6),
      rgba(58, 12, 12, 0.2)
    ),
    url("images/backgroundImage.jpeg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.links-container a {
  text-decoration: none;
  font-size: 13px;
  color: #e1dcdc;
}
.links-container span {
  color: #e1dcdc;
  font-size: 13px;
  cursor: default;
}
.product-details {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 0.2px solid #3f3d3d;
}
.product-details-right {
  display: flex;
  gap: 25px;
}
.product-details-right img {
  border-radius: 15px;
}
.rating {
  display: flex;
  align-items: center;
  font-size: 20px;
  color: #f9ae00;
  gap: 8px;
}

.stars {
  display: flex;
  position: relative;
  gap: 4px;
}

.star-wrapper {
  position: relative;
  display: inline-block;

  margin-left: 4px;
}

.stars .fa-star {
  color: #f9ae00;
  font-size: 13px;
}
.rating-number {
  font-size: 14px;
  font-weight: 500;
}
.product-details-title {
  margin: 20px 0;
  font-size: 30px;
  font-weight: 400;
}
.product-details-description {
  color: #adadad;
  font-weight: 400;
  width: 80%;
  margin: 20px 0;
}
.product-details-region {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-details-region-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-details-region-check p {
  font-size: 14px;
  font-weight: 500;
  margin: 4px 0;
}
.product-details-region-icon {
  background-color: #d32f2f;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}
.pan-text {
  color: #d32f2f;
  font-size: 14px;
}
.check-text {
  color: #d32f2f;
  font-size: 14px;
}

.ornage-icon {
  background-color: #ff7311;
}

.product-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  width: 340px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.instant-delivery {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ccc;
  gap: 5px;
}

.instant-delivery i {
  color: #00ff88;
  font-style: normal;
}

.price-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 15px;
}

.price-box .small-price {
  color: #ccc;
  margin-bottom: 5px;
  font-size: 16px;
}

.price-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.price-line .discount {
  background: #ff0033;
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
}

.price-line .old-price {
  text-decoration: line-through;
  color: #bbb;
  font-size: 16px;
}

.price-line .new-price {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.buy-now {
  display: flex;
  gap: 10px;
}

.buy-btn {
  background: #ff0033;
  border: none;
  padding: 2px 12px;
  flex: 1;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.quantity-box {
  background: #1c1c1c;
  padding: 12px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  gap: 15px;
  font-size: 20px;
}

.quantity-box button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.quantity-box button:hover {
  color: orange;
}

.choose-price-container {
  padding: 20px 2%;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  /* max-width: 1000px; */
  margin: auto;
}

h2 {
  margin-bottom: 20px;
  text-align: right;
}

.option {
  background: #3a3535;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}

.option input[type="radio"] {
  position: absolute;
  top: 30%;
  left: 10px;
  width: 20px;
  height: 20px;
  accent-color: #55111e;
}

.option .price {
  font-size: 15px;
}

.option .price-alt {
  font-size: 16px;
  color: #fff;
  margin-inline-start: 5px;
}

.option .discount {
  background: #ff0033;
  color: white;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 5px;
  margin-inline-start: 5px;
}

.option.selected {
  border: 2px solid #ff0033;
  background-color: #ff0033;
}

.product-details-footer {
  background-color: #222222;
  padding: 20px 2%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.product-details-right-side-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}
.product-details-right-side-box h3 {
  font-size: 25px;
  font-weight: 400;
}

.product-details-right-side-box p,
.product-details-right-side-box li {
  color: #d8d5d5;
}
.product-details-right-side-box a {
  color: #ff0033;
}

.product-details-left-side-box {
  display: flex;
  background-color: #181818;
  padding: 15px;
  flex: 1;
  flex-direction: column;
  width: 300px;
  gap: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.product-details-left-side-box-bottom {
  display: flex;
  align-items: center;
}

.product-details-left-side-box-top {
  display: flex;
}

.product-details-left-side-box-top a {
  margin-right: 5px;
  color: #ff0033;
  font-size: 16px;
}

/* end product details page */

/* digital currencies section */
.digital-currencies {
  padding: 30px 2%;
  background-color: #111111;
}
.section-title {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.limited-offers .section-title {
  background: linear-gradient(135deg, #fff 0%, #ff0033 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 15px;
}

.limited-offers .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #ff0033 50%, transparent 100%);
  border-radius: 2px;
}

.row-digital {
  display: grid;
  gap: 35px;
  text-align: center;
  margin-top: 20px;
  grid-template-columns: repeat(4, 180px);
}

.row-digital .digital-item {
  background-color: #292929;
  padding-bottom: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 190px;
}

.row-digital .digital-item img,
.row-marks .digital-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
}
.row-digital .digital-item p,
.row-marks .digital-item p {
  font-size: 14px;
  padding: 10px 0;
}

.row-digital .swiper-slide,
.row-marks .swiper-slide {
  height: auto;
}
/* end digital currencies section */

/* start another marks section */
.another-marks {
  padding: 30px 2%;
  padding-top: 120px;
  background-color: #111111;
  padding-bottom: 100px;
}
.row-marks {
  display: grid;
  gap: 10px;
  text-align: center;
  margin-top: 20px;
  grid-template-columns: repeat(8, 1fr);
  row-gap: 20px;
}
.row-marks .digital-item {
  background-color: #292929;
  padding-bottom: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.btn {
  background-color: #ff0033;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  outline: none;
}

.hidden-marks {
  display: none;
}

.active-marks {
  display: grid;
}

/* end another marks section */

/* start why us section */
.why-us {
  background-color: #222222;
  padding: 50px 2%;
  text-align: center;
}
.why-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.why-item i {
  color: #ff0033;
  font-size: 40px;
  margin: 20px 0;
}

.first-why-para {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
}
.second-why-para {
  color: #adadad;
}
/* end why us section */

/* start limited offers section */
.limited-offers {
  padding: 40px 2%;
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.limited-offers::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 0, 51, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 0, 51, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(255, 0, 51, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.limited-offers > * {
  position: relative;
  z-index: 2;
}

.limited-offers-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.limited-offers-item {
  position: relative;
  cursor: pointer;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #222 0%, #333 100%);
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
}

.limited-offers-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 0, 51, 0.1), rgba(255, 0, 51, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.limited-offers-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #ff0033;
  box-shadow: 0 20px 40px rgba(255, 0, 51, 0.3),
              0 0 30px rgba(255, 0, 51, 0.2);
}

.limited-offers-item:hover::before {
  opacity: 1;
}

.limited-offers-item img {
  width: 100%;
  border-radius: 18px;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.limited-offers-item:hover img {
  transform: scale(1.05);
}

.limited-bottom-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.95) 100%);
  padding: 30px 20px 20px;
  z-index: 3;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.limited-offers-item:hover .limited-bottom-text {
  transform: translateY(-5px);
}

.limited-bottom-text h4 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 5px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.3;
}

.limited-bottom-text p {
  font-size: 14px;
  color: #ff0033;
  margin: 0;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 5px;
}

.limited-bottom-text p::before {
  content: '⚡';
  font-size: 16px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* إضافة تأثير ضوئي للكارت */
.limited-offers-item::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff0033, #ff3366, #ff0033);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.limited-offers-item:hover::after {
  opacity: 1;
  animation: borderGlow 2s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% { box-shadow: 0 0 20px rgba(255, 0, 51, 0.5); }
  100% { box-shadow: 0 0 30px rgba(255, 0, 51, 0.8); }
}
/* end limited offers section */

/* start know-more section */
.know-more {
  background: linear-gradient(135deg, #222222 0%, #333333 100%);
  padding: 50px 2%;
  position: relative;
  overflow: hidden;
}

.know-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 0, 51, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 20%, rgba(255, 0, 51, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.know-more > * {
  position: relative;
  z-index: 2;
}

.know-more .section-title {
  background: linear-gradient(135deg, #fff 0%, #ff0033 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.know-more .section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #ff0033 50%, transparent 100%);
  border-radius: 2px;
}

/* تصميم السلايدر للمقالات */
.know-more .swiper {
  padding: 20px 0;
  overflow: visible;
}

.know-more .swiper-slide {
  height: auto;
  display: flex;
}

.know-more .digital-item {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #333 0%, #444 100%);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.know-more .digital-item:hover {
  transform: translateY(-10px);
  border-color: #ff0033;
  box-shadow: 0 15px 35px rgba(255, 0, 51, 0.3);
}

.know-more .digital-item img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.know-more .digital-item:hover img {
  transform: scale(1.05);
}

.know-more .digital-item p {
  width: 100%;
  margin: 0;
  padding: 20px;
  text-align: center;
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  line-height: 1.4;
}

/* تصميم أزرار التنقل للسلايدر */
.know-more .custom-navigation {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.know-more .custom-prev,
.know-more .custom-next {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff0033 0%, #cc0027 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.3);
}

.know-more .custom-prev:hover,
.know-more .custom-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 51, 0.4);
  background: linear-gradient(135deg, #ff1a4a 0%, #d9003d 100%);
}

.know-more .custom-prev i,
.know-more .custom-next i {
  font-size: 18px;
}

.more-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.more-btn {
  background: linear-gradient(135deg, #ff0033 0%, #cc0027 100%);
  color: white;
  border: none;
  outline: none;
  padding: 15px 35px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(255, 0, 51, 0.3);
}

.more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 0, 51, 0.4);
  background: linear-gradient(135deg, #ff1a4a 0%, #d9003d 100%);
  color: white;
  text-decoration: none;
}

.more-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.more-btn:hover i {
  transform: translateX(-3px);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
  .know-more {
    padding: 30px 2%;
  }
  
  .know-more .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .know-more .custom-prev,
  .know-more .custom-next {
    width: 40px;
    height: 40px;
  }
  
  .know-more .custom-prev i,
  .know-more .custom-next i {
    font-size: 14px;
  }
  
  .more-btn {
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .know-more {
    padding: 20px 2%;
  }
  
  .know-more .section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .know-more .custom-navigation {
    gap: 10px;
    margin-top: 20px;
  }
  
  .know-more .custom-prev,
  .know-more .custom-next {
    width: 35px;
    height: 35px;
  }
  
  .know-more .custom-prev i,
  .know-more .custom-next i {
    font-size: 12px;
  }
  
  .more-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .more-btn-container {
    margin-top: 30px;
  }
}
/* end know-more section */

/* start footer */

.footer {
  padding: 30px;
  background-color: #0a0a0a;
  text-align: right;
}

.trustpilot {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-end;
}

.trustpilot-btn {
  background-color: transparent;
  color: white;
  border: 1px solid #19b47f;
  padding: 10px 30px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}

.social-section {
  margin-bottom: 30px;
  text-align: end;
}

.social-section h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.social-icons img {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  border-radius: 50%;
  padding: 5px;
  cursor: pointer;
}

.footer-links {
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  gap: 60px;
  margin-bottom: 30px;
}

.footer-links div p {
  margin: 6px 0;
  font-size: 16px;
  color: #ccc;
  cursor: pointer;
}

.bottom-text {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  border-top: 1px solid #333;
  padding-top: 15px;
}

.languages select {
  background-color: #111;
  color: white;
  border: 1px solid #444;
  padding: 6px 10px;
  border-radius: 5px;
}

.certificates img {
  height: 40px;
  margin-right: 10px;
}

.payment-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}
.payment-icon-item {
  border: 2px solid #adadad;
  padding: 5px 20px;
  border-radius: 5px;
}
.payment-icon-item i {
  font-size: 20px;
}
.show-all {
  color: #ff0033;
  font-size: 14px;
  cursor: pointer;
}

.footer-first-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* end footer */

/* sidebar */

.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: #2d2d2d;
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.5);
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.login-btn {
  margin-top: 20px;
  width: 100%;
  background: #ff6600;
  border: none;
  color: white;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

.register-btn {
  margin-top: 10px;
  width: 100%;
  background: #444;
  border: none;
  color: white;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

.no-account {
  margin-top: 10px;
  font-size: 14px;
  color: #ccc;
  text-align: center;
}

.theme-switcher {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #3b3b3b;
  padding: 10px;
  border-radius: 6px;
}

.theme-switcher .icon {
  font-size: 18px;
}

.theme-switcher p {
  margin: 0;
  font-size: 15px;
  color: #eee;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 999;
}

.overlay.show {
  display: block;
}

/* media query */

/* login page */

.login-container {
  display: flex;
  justify-content: center;
  padding: 80px 0;
  background: linear-gradient(to right top, #31414a, #5e5236);
}

.login-container .initial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px 20px;
  width: 350px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.login-container .initial-card h1 {
  font-size: 28px;
  margin-bottom: 30px;
}

.login-container .emoji {
  font-size: 30px;
  margin-right: 10px;
}

.login-container .initial-login-btn {
  background-color: #ff0033;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
  justify-content: center;
  display: flex;
  gap: 5px;
}

.login-container .initial-login-btn:hover {
  background-color: #db0b35;
}

.login-container .initial-login-btn i {
  margin: 0 5px;
}

.login-container .footer {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
  background-color: transparent;
  border-top: 0.2px solid #6c6969;
}

.login-container .footer a {
  color: #ff6600;
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

.login-container .footer a:hover {
  text-decoration: underline;
}

.check-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px 20px;
  width: 400px;
  backdrop-filter: blur(10px);
  display: none;
}

.check-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.check-card p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 25px;
}

.check-card input[type="email"] {
  width: 93%;
  padding: 14px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 15px;
  color: #333;
  background: #fff;
  margin-bottom: 20px;
}

.check-card label {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 25px;
  color: #ddd;
}

.check-card input[type="checkbox"] {
  margin-left: 8px;
  transform: scale(1.2);
}

.check-card button {
  width: 100%;
  padding: 14px;
  background-color: #e9113d;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  margin-bottom: 20px;
}

.check-card .cancel {
  text-align: center;
  color: #ff6600;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.check-card .footer {
  text-align: center;
  font-size: 13px;
  color: #ccc;
}

.check-card .footer a {
  color: #ff6600;
  font-weight: bold;
  text-decoration: none;
}

.check-card .footer a:hover {
  text-decoration: underline;
}

.active-check-card {
  display: block;
}
.inactive-initial-card{
  display: none;
}

/* end login page */

@media (max-width: 1200px) {
  .price-line .new-price {
    font-size: 16px;
  }
  .buy-btn {
    font-size: 13px;
  }
  .row-marks {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 952px) {
  /* header */
  .bars-container {
    display: flex;
    margin: 0 10px;
  }
  
  .logo .text {
    display: none;
  }
  
  .nav-links {
    display: none;
  }

  .search-box {
    display: none;
  }
  
  /* تحسين كارت المنتج للشاشات المتوسطة */
  .products-container .product-image {
    height: 180px;
  }
  
  .card-details {
    padding: 18px;
  }
  
  .product-card-name {
    font-size: 15px;
  }
  
  .add-to-cart-btn {
    padding: 11px 18px;
    font-size: 13px;
  }
  
  .lang-currency {
    padding: 8px 12px;
  }
  
  .currency-selector-wrapper {
    min-width: 100px;
    padding: 0 8px;
  }
  
  #currency-selector {
    font-size: 12px;
    padding: 6px 0;
  }
  
  .currency-arrow {
    font-size: 10px;
    margin-left: 5px;
  }
  
  .icons {
    gap: 15px;
  }
  
  .icons i {
    font-size: 20px;
    padding: 8px;
  }
  
  .bottom-search-box {
    display: block;
  }
  
  .top-bar {
    padding: 8px 15px;
  }
  
  .logo-image {
    width: 50px;
    height: 50px;
    margin-left: 0px;
  }
  
  .nav-bar {
    padding: 10px 15px;
  }
  
  .menu {
    padding: 10px 15px;
    margin-left: 10px;
  }
  .product-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .product-details-title {
    font-size: 20px;
  }
  .product-details-region-check p {
    font-size: 12px;
  }

  .product-details-footer {
    flex-direction: column-reverse;
    justify-content: center;
  }
  .product-details-left-side {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
  .digital-currencies .row-digital {
    grid-template-columns: repeat(3, 180px);
  }

  /* header */
}

@media (max-width: 710px) {
  .product-details-right {
    flex-direction: column;
    width: 90%;
    margin: auto;
  }
  .product-details-left {
    flex-direction: column;
    width: 80%;
    margin: auto;
  }
  .row-marks {
    grid-template-columns: repeat(3, 1fr);
  }
  .know-more {
    padding: 40px 15px;
  }
  .know-more .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .know-more .row-digital {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .know-more .row-digital .digital-item img {
    height: 180px;
  }
  .know-more .row-digital .digital-item p {
    padding: 15px;
    font-size: 14px;
  }
  .more-btn {
    padding: 12px 28px;
    font-size: 16px;
  }
  .play-more {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .home-slide {
    text-align: center;
  }
  
  .currency-selector-wrapper {
    min-width: 80px;
    padding: 0 6px;
  }
  
  /* تحسين كارت المنتج للشاشات الصغيرة */
  .products-container .product-image {
    height: 160px;
  }
  
  .card-details {
    padding: 15px;
    gap: 10px;
  }
  
  .product-card-name {
    font-size: 14px;
    min-height: 36px;
  }
  
  .product-discounted-box {
    font-size: 14px;
    gap: 6px;
  }
  
  .product-price {
    font-size: 16px;
  }
  
  .add-to-cart-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .product-discounted-percentage {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  #currency-selector {
    font-size: 11px;
    padding: 4px 0;
  }
  
  .global-container {
    display: none; /* إخفاء أيقونة الكرة الأرضية في الشاشات الصغيرة */
  }
  
  .lang-currency {
    padding: 6px 8px;
    gap: 5px;
  }
  
  .digital-currencies .row-digital {
    gap: 20px;

    grid-template-columns: repeat(2, 1fr);
  }
  .digital-currencies .row-digital .digital-item {
    width: 100%;
  }
  .why-row {
    grid-template-columns: repeat(1, 1fr);
  }
  .limited-offers {
    padding: 30px 15px;
  }
  .limited-offers-row {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-top: 25px;
  }
  .limited-offers-item {
    max-width: 400px;
    margin: 0 auto;
  }
  .limited-offers-item img {
    height: 250px;
  }
  .limited-bottom-text {
    padding: 25px 15px 15px;
  }
  .limited-bottom-text h4 {
    font-size: 16px;
  }
  .limited-bottom-text p {
    font-size: 13px;
  }
  .limited-offers .section-title {
    font-size: 28px;
  }
  .know-more {
    padding: 30px 10px;
  }
  .know-more .section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .know-more .section-title::after {
    width: 80px;
    height: 2px;
    bottom: -12px;
  }
  .know-more .row-digital {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }
  .know-more .row-digital .digital-item img {
    height: 180px;
  }
  .know-more .row-digital .digital-item p {
    padding: 15px;
    font-size: 14px;
  }
  .more-btn {
    padding: 10px 25px;
    font-size: 15px;
  }
  .footer-first-row {
    flex-direction: column;
    gap: 30px;
  }
  .footer-links div p {
    font-size: 11px;
  }
  .home-product-bottom {
    width: 95% !important;
    overflow: hidden !important;
    right: 2.5%;
  }
}

/* User menu and cart styles */
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff0033 0%, #cc0028 100%);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(255, 0, 51, 0.5);
}

.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 0;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999999 !important;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-dropdown a:last-child {
  border-bottom: none;
}

.user-dropdown a:hover {
  background: rgba(255, 0, 51, 0.1);
  padding-right: 25px;
}

.icons a {
  position: relative;
  display: inline-block;
}

/* Responsive adjustments for right-side container */
.right-side {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

/* ===============================================
   تحسينات الموبايل والشاشات الصغيرة
   =============================================== */

/* تحسينات عامة للموبايل */
* {
  box-sizing: border-box;
}

body {
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: relative;
}

/* إصلاح مشكلة السكرول */
html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
}

/* التأكد من أن المحتوى الرئيسي قابل للتمرير */
main {
  overflow: visible;
  min-height: auto;
  height: auto;
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

/* إصلاح الهيدر ليكون sticky بدون تعطيل السكرول */

/* تحسينات الهيدر للموبايل */
@media (max-width: 768px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 1001;
  }
  
  .top-bar {
    padding: 12px 15px;
    flex-wrap: nowrap;
    gap: 12px;
  }
  
  .header-left {
    order: 1;
    flex-shrink: 0;
  }
  
  .header-center {
    display: none; /* إخفاء البحث في الهيدر للموبايل */
    order: 3;
    margin: 0;
    max-width: none;
    flex: 1;
  }
  
  .header-right {
    order: 2;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
  }
  
  .logo-image {
    width: 55px;
    height: 55px;
    border-radius: 10px;
  }
  
  .search-box {
    display: none;
  }
  
  .bottom-search-box {
    display: block;
    padding: 12px 15px;
    background: rgba(17, 17, 17, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .bottom-search-box input {
    width: 100%;
    padding: 14px 45px 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
  }
  
  .bottom-search-box input:focus {
    border-color: #ff0033;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
  }
  
  .bottom-search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
  }
  
  .lang-currency {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    gap: 8px;
  }
  
  .global-container {
    padding: 6px 10px;
    font-size: 14px;
  }
  
  .currency-selector-wrapper {
    min-width: 90px;
    padding: 0 8px;
  }
  
  .currency-selector-wrapper select {
    font-size: 13px;
    padding: 4px 6px;
  }
  
  .user-actions {
    gap: 8px;
  }
  
  .login-btn-header {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 20px;
  }
  
  .login-text {
    display: none; /* إخفاء النص في الموبايل */
  }
  
  .admin-text {
    display: none;
  }
  
  .cart-btn,
  .menu-btn,
  .support-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .cart-count {
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    top: -3px;
    right: -3px;
  }
  
  .nav-bar {
    padding: 0 15px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 100;
  }
  
  .nav-bar::-webkit-scrollbar {
    display: none;
  }
  
  .nav-links {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    white-space: nowrap;
    min-width: max-content;
  }
  
  .nav-links a {
    padding: 8px 16px;
    font-size: 14px;
    min-width: max-content;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links a.menu span {
    display: none;
  }
  
  .nav-links a.menu svg {
    width: 18px;
    height: 18px;
  }
}

/* تحسينات للهواتف الصغيرة جداً */
@media (max-width: 480px) {
  .top-bar {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .header-right {
    gap: 6px;
  }
  
  .logo-image {
    width: 45px;
    height: 45px;
  }
  
  .lang-currency {
    padding: 6px 8px;
  }
  
  .global-container {
    padding: 4px 6px;
    font-size: 12px;
  }
  
  .currency-selector-wrapper {
    min-width: 75px;
    padding: 0 6px;
  }
  
  .currency-selector-wrapper select {
    font-size: 11px;
    padding: 2px 4px;
  }
  
  .user-actions {
    gap: 6px;
  }
  
  .cart-btn,
  .menu-btn,
  .support-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  /* تحسينات العروض المحدودة للهواتف الصغيرة */
  .limited-offers {
    padding: 20px 10px;
  }
  
  .limited-offers .section-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .limited-offers .section-title::after {
    width: 60px;
    height: 2px;
    bottom: -8px;
  }
  
  .limited-offers-row {
    gap: 15px;
    margin-top: 20px;
  }
  
  .limited-offers-item {
    border-radius: 15px;
    max-width: 350px;
  }
  
  .limited-offers-item img {
    height: 220px;
    border-radius: 13px;
  }
  
  .limited-bottom-text {
    padding: 20px 12px 12px;
  }
  
  .limited-bottom-text h4 {
    font-size: 14px;
    line-height: 1.2;
  }
  
  .limited-bottom-text p {
    font-size: 12px;
  }
  
  .limited-bottom-text p::before {
    font-size: 14px;
  }
  
  /* تحسينات قسم المقالات للهواتف الصغيرة */
  .know-more {
    padding: 25px 8px;
  }
  
  .know-more .section-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .know-more .section-title::after {
    width: 60px;
    height: 2px;
    bottom: -10px;
  }
  
  .know-more .row-digital {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .know-more .row-digital .digital-item {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .know-more .row-digital .digital-item img {
    height: 160px;
  }
  
  .know-more .row-digital .digital-item p {
    padding: 12px;
    font-size: 13px;
  }
  
  .more-btn {
    padding: 8px 20px;
    font-size: 14px;
  }
  
  .more-btn i {
    font-size: 14px;
  }
  
  .login-btn-header {
    padding: 6px 8px;
    font-size: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }
  
  .login-btn-header .fa-solid {
    margin: 0;
  }
  
  .bottom-search-box {
    padding: 10px 12px;
  }
  
  .bottom-search-box input {
    padding: 12px 40px 12px 15px;
    font-size: 15px;
  }
  
  .nav-links {
    gap: 8px;
    padding: 10px 0;
  }
  
  .nav-links a {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* تحسينات الفوتر للموبايل */
@media (max-width: 768px) {
  .footer {
    padding: 25px 15px 20px;
  }
  
  .footer-first-row {
    flex-direction: column;
    gap: 25px;
    align-items: center;
    text-align: center;
  }
  
  .payment-icons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
  }
  
  .payment-icon-item {
    font-size: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .payment-icon-item:hover {
    background: rgba(255, 0, 51, 0.1);
    border-color: rgba(255, 0, 51, 0.3);
    transform: scale(1.05);
  }
  
  .show-all {
    font-size: 15px;
    margin-top: 15px;
    color: #ff0033;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .show-all:hover {
    text-shadow: 0 0 10px rgba(255, 0, 51, 0.5);
  }
  
  .trustpilot-btn {
    padding: 12px 25px;
    font-size: 15px;
    border-radius: 25px;
    background: linear-gradient(135deg, #00b67a 0%, #00a86b 100%);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 182, 122, 0.3);
  }
  
  .trustpilot-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 182, 122, 0.5);
  }
  
  .social-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .social-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
  }
  
  .social-icons {
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .social-icons img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
  }
  
  .social-icons img:hover {
    transform: scale(1.1);
    border-color: #ff0033;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.3);
  }
  
  .footer-links {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }
  
  .footer-links div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .footer-links p {
    font-size: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
  }
  
  .footer-links p:last-child {
    border-bottom: none;
  }
  
  .footer-links p:hover {
    color: #ff0033;
    background: rgba(255, 0, 51, 0.05);
    transform: translateX(5px);
  }
  
  .bottom-text {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.6;
  }
  
  .bottom-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
  }
  
  .bottom-text span {
    color: #ff0033;
    font-weight: 500;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .languages select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
  }
  
  .languages select:focus {
    border-color: #ff0033;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.3);
  }
  
  .certificates img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  .certificates img:hover {
    border-color: #ff0033;
    transform: scale(1.05);
  }
}

/* تحسينات للهواتف الصغيرة جداً - الفوتر */
@media (max-width: 480px) {
  .footer {
    padding: 20px 12px 15px;
  }
  
  .footer-first-row {
    gap: 20px;
  }
  
  .payment-icons {
    gap: 12px;
  }
  
  .payment-icon-item {
    font-size: 20px;
    padding: 8px;
  }
  
  .trustpilot-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .social-section {
    margin: 20px 0;
    padding: 15px;
  }
  
  .social-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .social-icons {
    gap: 15px;
  }
  
  .social-icons img {
    width: 35px;
    height: 35px;
    padding: 3px;
  }
  
  .footer-links {
    gap: 15px;
  }
  
  .footer-links div {
    padding: 15px;
    gap: 8px;
  }
  
  .footer-links p {
    font-size: 14px;
    padding: 8px 0;
  }
  
  .bottom-text {
    margin: 20px 0;
    padding: 15px;
  }
  
  .bottom-text p {
    font-size: 13px;
  }
  
  .footer-bottom {
    gap: 15px;
    padding: 15px;
  }
  
  .languages select {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .certificates img {
    width: 50px;
    height: 50px;
  }
}
  
  .footer-links p:last-child {
    border-bottom: none;
  }
  
  .bottom-text {
    text-align: center;
    margin: 25px 0;
  }
  
  .bottom-text p {
    font-size: 12px;
    line-height: 1.6;
    padding: 0 10px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }
  
  .languages select {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 120px;
  }
  
  .certificates img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  .certificates img:hover {
    border-color: #ff0033;
    transform: scale(1.05);
  }


/* تحسينات للهواتف الصغيرة جداً - الفوتر */
@media (max-width: 480px) {
  .footer {
    padding: 20px 12px 15px;
  }
  
  .footer-first-row {
    gap: 20px;
  }
  
  .payment-icons {
    gap: 12px;
  }
  
  .payment-icon-item {
    font-size: 20px;
    padding: 8px;
  }
  
  .trustpilot-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .social-section {
    margin: 20px 0;
    padding: 15px;
  }
  
  .social-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .social-icons {
    gap: 15px;
  }
  
  .social-icons img {
    width: 35px;
    height: 35px;
    padding: 3px;
  }
  
  .footer-links {
    gap: 15px;
  }
  
  .footer-links div {
    padding: 15px;
    gap: 8px;
  }
  
  .footer-links p {
    font-size: 14px;
    padding: 8px 0;
  }
  
  .bottom-text {
    margin: 20px 0;
    padding: 15px;
  }
  
  .bottom-text p {
    font-size: 13px;
  }
  
  .footer-bottom {
    gap: 15px;
    padding: 15px;
  }
  
  .languages select {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .certificates img {
    width: 50px;
    height: 50px;
  }
}

/* تحسينات النماذج والـ Modal للموبايل */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: 400px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 15px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .auth-form h2 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .auth-form input {
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
  }
  
  .auth-form input:focus {
    border-color: #ff0033;
    outline: none;
  }
  
  .auth-form button {
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff0033, #ff6b6b);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .auth-form button:hover {
    background: linear-gradient(135deg, #e60029, #ff5252);
    transform: translateY(-2px);
  }
  
  .auth-form p {
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
  }
  
  .auth-form a {
    color: #ff0033;
    text-decoration: none;
  }
  
  .close {
    font-size: 24px;
    padding: 5px;
    top: 10px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    margin: 5% auto;
    padding: 15px;
    max-height: 90vh;
  }
  
  .auth-form h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .auth-form input {
    padding: 10px 12px;
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .auth-form button {
    padding: 10px 18px;
    font-size: 15px;
  }
  
  .auth-form p {
    font-size: 13px;
    margin-top: 12px;
  }
  
  .close {
    font-size: 22px;
    top: 8px;
    right: 12px;
  }
}

/* تحسينات الـ Sidebar للموبايل */
@media (max-width: 768px) {
  .sidebar {
    width: 85%;
    max-width: 300px;
    padding: 20px;
  }
  
  .sidebar-header h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .close-btn {
    font-size: 18px;
    padding: 5px 8px;
  }
  
  .login-btn,
  .register-btn {
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 8px;
    margin: 10px 0;
    width: 100%;
  }
  
  .no-account {
    font-size: 14px;
    margin: 15px 0 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 90%;
    max-width: 280px;
    padding: 15px;
  }
  
  .sidebar-header h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .close-btn {
    font-size: 16px;
    padding: 4px 6px;
  }
  
  .login-btn,
  .register-btn {
    padding: 10px 18px;
    font-size: 14px;
    margin: 8px 0;
  }
  
  .no-account {
    font-size: 13px;
    margin: 12px 0 8px;
  }
}

/* تحسينات Flash Messages للموبايل */
@media (max-width: 768px) {
  .flash-messages {
    padding: 10px 15px;
    margin: 0;
  }
  
  .alert {
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    word-wrap: break-word;
  }
  
  .alert button {
    font-size: 16px;
    padding: 0 8px;
    top: 8px;
    left: 10px;
  }
}

@media (max-width: 480px) {
  .flash-messages {
    padding: 8px 10px;
  }
  
  .alert {
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 8px;
  }
  
  .alert button {
    font-size: 14px;
    padding: 0 6px;
    top: 6px;
    left: 8px;
  }
}

/* تحسينات اللمس والتفاعل */
@media (hover: none) and (pointer: coarse) {
  .bars-container,
  .logo-image,
  .icons i,
  .nav-links a,
  .footer-links p,
  .auth-form button,
  .login-btn,
  .register-btn,
  .trustpilot-btn {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .auth-form input,
  .bottom-search-box input,
  .languages select {
    min-height: 44px;
  }
  
  /* تحسين الأزرار للمس */
  button,
  .btn,
  a {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
  }
}

/* تحسينات إضافية للأداء */
.header,
.footer,
.modal-content,
.sidebar {
  will-change: transform;
  backface-visibility: hidden;
}

/* منع التمدد الأفقي */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  height: auto;
  min-height: 100vh;
  scroll-behavior: smooth;
}

html {
  overflow-y: auto;
}

/* إصلاح السكرول للصفحة الرئيسية */
main {
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  min-height: calc(100vh - 200px);
}

/* تحسين الخطوط للشاشات عالية الكثافة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* إصلاحات إضافية للسكرول */
.no-scroll {
  overflow: hidden !important;
}

/* التأكد من عمل السكرول على جميع المتصفحات */
html, body {
  -webkit-overflow-scrolling: touch !important;
}

/* إصلاح السكرول في Safari وiOS */
body {
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}

/* إزالة أي قيود على الارتفاع */
.container, .main-content, .content {
  height: auto !important;
  min-height: auto !important;
}

/* التأكد من أن العناصر المطلقة لا تمنع السكرول */
.modal, .overlay, .sidebar {
  pointer-events: auto;
}

.modal.show {
  pointer-events: auto;
}

/* إصلاح نهائي للسكرول */
body.modal-open {
  overflow: hidden !important;
}

body:not(.modal-open) {
  overflow-y: auto !important;
}

/* CSS خاص بإصلاح مشاكل المتصفحات المختلفة */
@supports (-webkit-appearance: none) {
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* إصلاح نهائي شامل للسكرول */
html {
  height: 100%;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
}

body {
  height: 100%;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* إزالة أي تأثيرات قد تمنع السكرول */
* {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* تأكيد أن المحتوى يأخذ المساحة الكاملة */
#root, .app, .container {
  height: auto !important;
  min-height: 100vh;
}

/* إصلاح للمتصفحات القديمة */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: #0a0909;
}

body::-webkit-scrollbar-thumb {
  background-color: #ff0033;
  border-radius: 20px;
}

/* فورس السكرول على جميع العناصر */
.scrollable {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* تصميم العملة الجديد */
.currency-dropdown {
  position: relative;
  display: inline-block;
}

.currency-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
  justify-content: space-between;
}

.currency-button:hover {
  background: rgba(255, 0, 51, 0.1);
  border-color: rgba(255, 0, 51, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.2);
}

.currency-display {
  display: flex;
  align-items: center;
  gap: 6px;
}

.currency-symbol {
  font-size: 16px;
  font-weight: bold;
  color: #ff0033;
}

.currency-code {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.currency-arrow {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
}

.currency-dropdown.active .currency-arrow {
  transform: rotate(180deg);
}

.currency-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 0;
  min-width: 280px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  z-index: 999999 !important;
  display: none;
  overflow: hidden;
}

.currency-dropdown.active .currency-menu {
  display: block;
  animation: slideInDown 0.3s ease-out;
}

.currency-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: rgba(255, 0, 51, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ff0033;
  font-weight: 600;
}

.currency-header i {
  font-size: 16px;
}

.currency-options {
  max-height: 300px;
  overflow-y: auto;
}

.currency-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.currency-option:last-child {
  border-bottom: none;
}

.currency-option:hover {
  background: rgba(255, 0, 51, 0.08);
  transform: translateX(-3px);
}

.currency-option.active {
  background: rgba(255, 0, 51, 0.15);
  border-left: 3px solid #ff0033;
}

.currency-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-info .symbol {
  font-size: 18px;
  font-weight: bold;
  color: #ff0033;
  min-width: 30px;
}

.currency-info .code {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.currency-name {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.currency-check {
  color: #28a745;
  font-size: 16px;
}

/* تخطيط الهيدر للموبايل والديسكتوب */
.mobile-header-layout {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
}

.desktop-header-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 15px 25px 15px 140px;
  width:100%;
}

.logo-section {
  display: flex;
  align-items: center;
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* تصميم العملة للموبايل */
.mobile-currency .currency-button {
  min-width: auto;
  padding: 8px 12px;
  background: rgba(255, 0, 51, 0.1);
  border: 2px solid rgba(255, 0, 51, 0.2);
}

.mobile-currency .currency-symbol {
  font-size: 14px;
}

.mobile-currency .currency-arrow {
  font-size: 10px;
}

.mobile-currency .currency-menu {
  right: 0;
  min-width: 250px;
  z-index: 999999 !important;
}

/* أيقونات الموبايل */
.mobile-cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-cart-icon:hover {
  background: rgba(255, 0, 51, 0.15);
  border-color: rgba(255, 0, 51, 0.3);
  color: #ff0033;
  transform: scale(1.05);
}

.mobile-cart-icon i {
  font-size: 18px;
}

#cart-count-mobile {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff0033;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  border: 2px solid #111;
}

.mobile-user-menu {
  position: relative;
}

.mobile-user-menu .menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
}

.mobile-user-menu .menu-btn:hover {
  background: rgba(255, 0, 51, 0.15);
  border-color: rgba(255, 0, 51, 0.3);
  color: #ff0033;
  transform: scale(1.05);
}

.mobile-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #ff0033, #cc0028);
  border: none;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

.mobile-login-btn:hover {
  background: linear-gradient(135deg, #cc0028, #990020);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.3);
}

.mobile-dropdown {
  right: 0 !important;
  min-width: 200px;
}

/* ضمان ظهور القوائم المنسدلة فوق جميع العناصر */
.currency-dropdown,
.user-menu,
.mobile-user-menu {
  position: relative;
  z-index: 999990;
}

.currency-dropdown.active,
.user-menu:has(.show),
.mobile-user-menu:has(.show) {
  z-index: 999995;
}

.currency-menu,
.user-dropdown {
  z-index: 999999 !important;
  position: absolute;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.currency-menu.show,
.user-dropdown.show {
  z-index: 999999 !important;
}

.mobile-dropdown {
  z-index: 999999 !important;
  right: 0 !important;
  min-width: 200px;
}

/* التأكد من أن القوائم فوق شريط التنقل */
.nav-bar {
  z-index: 100 !important;
}

.currency-menu,
.user-dropdown,
.mobile-dropdown {
  z-index: 999999 !important;
}

/* قوائم العملات المنسدلة */
.currency-dropdown .currency-menu {
  z-index: 999999 !important;
}

.mobile-currency .currency-menu {
  z-index: 999999 !important;
}

/* قوائم المستخدم المنسدلة */
.user-menu .user-dropdown {
  z-index: 999999 !important;
}

.mobile-user-menu .user-dropdown {
  z-index: 999999 !important;
}

/* ضمان أن جميع القوائم المنسدلة تظهر فوق كل شيء */
.currency-menu,
.user-dropdown,
.mobile-dropdown,
[class*="dropdown"],
[class*="menu"]:not(.nav-bar):not(.menu) {
  z-index: 999999 !important;
}

/* استثناءات للعناصر التي لا نريدها أن تأخذ z-index عالي */
.nav-bar,
.footer,
.main {
  z-index: 50;
}

/* ضمان أن الهيدر لا يتداخل مع القوائم المنسدلة */
.header {
  z-index: 100 !important;
}

/* إعطاء أولوية أعلى للعناصر داخل الهيدر التي تحتوي على قوائم منسدلة */
.header .currency-dropdown,
.header .user-menu,
.header .mobile-user-menu {
  z-index: 999998 !important;
  position: relative;
}

/* النوافذ المنبثقة والمودال */
.modal,
.overlay,
.sidebar,
.auth-form {
  z-index: 1000000 !important;
}

/* التأكد من أن Flash Messages تظهر فوق كل شيء أيضاً */
.flash-messages {
  z-index: 1000001 !important;
}

/* إضافة transform لإنشاء stacking context للقوائم المنسدلة */
.currency-dropdown.active,
.user-menu:has(.show),
.mobile-user-menu:has(.show) {
  transform: translateZ(0);
  will-change: transform;
}

/* ضمان عدم تداخل أي عنصر مع القوائم المنسدلة */
.currency-menu.show,
.user-dropdown.show,
.mobile-dropdown.show,
.currency-dropdown.active .currency-menu,
.user-menu .user-dropdown.show,
.mobile-user-menu .user-dropdown.show {
  z-index: 999999 !important;
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
  position: fixed !important;
}

/* إضافة قواعد إضافية للقوائم المنسدلة */
.currency-dropdown .currency-menu,
.mobile-currency .currency-menu,
.user-menu .user-dropdown,
.mobile-user-menu .user-dropdown {
  z-index: 999999 !important;
  position: absolute !important;
}

/* ضمان أن القوائم المنسدلة تظهر فوق الهيدر وشريط التنقل */
.header .currency-menu,
.header .user-dropdown,
.header .mobile-dropdown {
  z-index: 999999 !important;
  position: absolute !important;
}

/* قواعد نهائية للتأكد من ظهور القوائم فوق كل شيء */
.currency-menu,
.user-dropdown,
.mobile-dropdown,
.currency-dropdown.active .currency-menu,
.user-menu .user-dropdown.show,
.mobile-user-menu .user-dropdown.show {
  z-index: 999999 !important;
  position: absolute !important;
  isolation: isolate;
  transform: translateZ(0);
}

/* منع أي عنصر من إخفاء القوائم المنسدلة */
.nav-bar:not(.currency-menu):not(.user-dropdown):not(.mobile-dropdown),
.header > *:not(.currency-dropdown):not(.user-menu):not(.mobile-user-menu):not(.currency-menu):not(.user-dropdown):not(.mobile-dropdown) {
  z-index: 1 !important;
}

/* الاستجابة للموبايل */
@media (max-width: 768px) {
  .mobile-header-layout {
    display: flex;
    padding: 15px;
  }
  
  .desktop-header-layout {
    display: none;
  }
  
  .logo-image {
    width: 45px;
    height: 45px;
  }
  
  .mobile-actions {
    gap: 15px;
  }
  
  .mobile-currency .currency-button {
    padding: 8px 12px;
  }
  
  .mobile-cart-icon,
  .mobile-user-menu .menu-btn,
  .mobile-login-btn {
    width: 42px;
    height: 42px;
  }
  
  .mobile-cart-icon i {
    font-size: 16px;
  }
  
  .mobile-user-menu .menu-btn {
    font-size: 18px;
  }
  
  .mobile-login-btn {
    font-size: 16px;
  }
  
  #cart-count-mobile {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: -4px;
    right: -4px;
  }
}

@media (max-width: 480px) {
  .mobile-header-layout {
    padding: 12px 15px;
  }
  
  .logo-image {
    width: 40px;
    height: 40px;
  }
  
  .mobile-actions {
    gap: 12px;
  }
  
  .mobile-currency .currency-button {
    padding: 6px 10px;
  }
  
  .mobile-currency .currency-symbol {
    font-size: 13px;
  }
  
  .mobile-cart-icon,
  .mobile-user-menu .menu-btn,
  .mobile-login-btn {
    width: 38px;
    height: 38px;
  }
  
  .mobile-cart-icon i {
    font-size: 14px;
  }
  
  .mobile-user-menu .menu-btn {
    font-size: 16px;
  }
  
  .mobile-login-btn {
    font-size: 14px;
  }
  
  .currency-menu {
    min-width: 220px;
  }
  
  /* زيادة z-index للموبايل */
  .currency-dropdown,
  .mobile-user-menu {
    z-index: 10004;
  }
  
  .currency-menu,
  .mobile-dropdown {
    z-index: 10005 !important;
  }
}

/* تحسينات إضافية */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* إخفاء عناصر الديسكتوب على الموبايل */
@media (max-width: 768px) {
  .center-search {
    display: none;
  }
}

.left-side {
  display: flex;
  align-items: center;
  gap: 15px;
}

.center-search {
  display: flex;
  justify-content: center;
  flex: 1;
}

.center-search .search-box {
  width: 100%;
  max-width: 500px;
  margin: 0;
}

.right-side {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  color: #fff;
  text-decoration: none;
}

.cart-icon:hover {
  background: rgba(255, 0, 51, 0.15);
  color: #ff0033;
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff0033;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.login-header-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ff0033, #cc0028);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.login-header-btn:hover {
  background: linear-gradient(135deg, #cc0028, #990020);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.3);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px 0;
  min-width: 220px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: none;
}

.user-dropdown.show {
  display: block;
}

.user-info {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.user-dropdown a:hover {
  background: rgba(255, 0, 51, 0.1);
  color: #ff0033;
}

.logout-btn {
  color: #ff4757 !important;
}

.logout-btn:hover {
  background: rgba(255, 71, 87, 0.1) !important;
  color: #ff4757 !important;
}

/* شريط التنقل العصري */
.nav-container {
  display: flex;
  gap: 12px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 15px 25px;
  width: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  /* تحسين الأداء */
  will-change: scroll-position;
  /* إضافة padding للتأكد من عدم قطع العناصر */
  padding-left: max(25px, env(safe-area-inset-left));
  padding-right: max(25px, env(safe-area-inset-right));
}

.nav-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* تحسين المظهر عند التحميل */
.nav-container {
  opacity: 0;
  animation: navSlideIn 0.5s ease-out 0.2s forwards;
}

@keyframes navSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  font-size: 14px;
  min-width: fit-content;
  backdrop-filter: blur(10px);
}

.nav-item i {
  font-size: 16px;
  min-width: 16px;
}

.nav-item span {
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  background: rgba(255, 0, 51, 0.2);
  border-color: rgba(255, 0, 51, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 51, 0.25);
  color: #fff;
}

.nav-item.featured {
  background: linear-gradient(135deg, #ff0033, #cc0028);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 0, 51, 0.3);
}

.nav-item.featured:hover {
  background: linear-gradient(135deg, #cc0028, #990020);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 0, 51, 0.4);
}

.nav-item.hot {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.nav-item.hot:hover {
  background: linear-gradient(135deg, #f7931e, #e67e22);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.hot-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #ff4757, #ff3742);
  color: white;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* تحسين تجربة التمرير في شريط التنقل */
.nav-container {
  /* إضافة shadows للإشارة إلى إمكانية التمرير */
  position: relative;
}

.nav-container::before,
.nav-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.nav-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
  opacity: 0;
}

.nav-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.3), transparent);
  opacity: 1;
}

/* عرض الظلال عند التمرير */
.nav-container.scrolled-left::before {
  opacity: 1;
}

.nav-container.scrolled-right::after {
  opacity: 0;
}

/* تحسين active state للعناصر */
.nav-item:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* تحسين focus state للوصولية */
.nav-item:focus {
  outline: 2px solid rgba(255, 0, 51, 0.5);
  outline-offset: 2px;
}

.nav-item:focus:not(:focus-visible) {
  outline: none;
}

/* حالة عدم وجود فئات */
.nav-container:empty::after {
  content: 'جاري تحميل الفئات...';
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* تحسين الاستجابة للأجهزة اللوحية الأفقية */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .nav-container {
    padding: 14px 22px;
    gap: 10px;
  }
  
  .nav-item {
    padding: 13px 16px;
    font-size: 13px;
  }
  
  .nav-item i {
    font-size: 15px;
  }
}

/* تحسين للأجهزة عالية الدقة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav-item {
    border-width: 0.5px;
  }
  
  .hot-badge {
    border: 0.5px solid rgba(255, 255, 255, 0.2);
  }
}

/* شريط البحث للموبايل */
.mobile-search-bar {
  padding: 15px 25px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: none;
}

.mobile-search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  padding: 12px 15px;
  gap: 12px;
}

.search-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
}

.mobile-search-container input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  outline: none;
}

.mobile-search-container input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.voice-search-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.voice-search-btn:hover {
  color: #ff0033;
  background: rgba(255, 0, 51, 0.1);
}

/* تصميم الفوتر العصري */
.footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-section {
  padding: 40px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.trust-item:hover {
  background: rgba(255, 0, 51, 0.05);
  border-color: rgba(255, 0, 51, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 0, 51, 0.1);
}

.trust-item i {
  font-size: 24px;
  color: #ff0033;
}

.trust-item span {
  font-weight: 600;
  color: #fff;
}

.payment-methods h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.payment-icons {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 35px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.payment-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.payment-icon i {
  font-size: 20px;
  color: #fff;
}

.payment-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 35px;
  background: rgba(255, 0, 51, 0.1);
  border: 1px solid rgba(255, 0, 51, 0.3);
  border-radius: 8px;
  color: #ff0033;
  font-weight: bold;
  font-size: 14px;
}

.rating-section {
  padding: 40px 25px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trustpilot-rating {
  max-width: 400px;
  margin: 0 auto;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 15px;
}

.rating-stars i {
  color: #ffc107;
  font-size: 24px;
}

.rating-text {
  margin-left: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

.rating-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  font-size: 16px;
}

.rate-us-btn {
  background: linear-gradient(135deg, #00b894, #00a085);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rate-us-btn:hover {
  background: linear-gradient(135deg, #00a085, #008f75);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding: 50px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  position: relative;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #ff0033;
  border-radius: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.footer-links a:hover {
  color: #ff0033;
  padding-right: 10px;
}

.social-section {
  padding: 40px 25px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.social-section h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: 600;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 80px;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook:hover {
  background: rgba(24, 119, 242, 0.2);
  border-color: #1877f2;
  color: #1877f2;
}

.social-icon.twitter:hover {
  background: rgba(29, 161, 242, 0.2);
  border-color: #1da1f2;
  color: #1da1f2;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, rgba(131, 58, 180, 0.2), rgba(253, 29, 29, 0.2));
  border-color: #e1306c;
  color: #e1306c;
}

.social-icon.youtube:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: #ff0000;
  color: #ff0000;
}

.social-icon.tiktok:hover {
  background: rgba(105, 117, 147, 0.2);
  border-color: #69b7ff;
  color: #69b7ff;
}

.social-icon i {
  font-size: 24px;
}

.social-icon span {
  font-size: 12px;
  font-weight: 500;
}

.footer-bottom {
  padding: 30px 25px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 30px;
}

.logo-section {
  flex: 1;
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.company-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  max-width: 400px;
}

.language-region {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-selector i {
  color: rgba(255, 255, 255, 0.6);
}

.language-selector select {
  background: none;
  border: none;
  color: #fff;
  outline: none;
  cursor: pointer;
}

.copyright {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.6;
}

/* الاستجابة للموبايل */
@media (max-width: 768px) {
  .header .top-bar {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 12px 15px;
  }
  
  .center-search {
    order: 3;
    display: none;
  }
  
  .mobile-search-bar {
    display: block;
  }
  
  .left-side {
    order: 1;
  }
  
  .right-side {
    order: 2;
    justify-content: flex-end;
  }
  
  .bars-container {
    display: flex;
  }
  
  .nav-container {
    padding: 12px 20px;
    gap: 8px;
  }
  
  .nav-item {
    font-size: 13px;
    padding: 12px 15px;
    gap: 8px;
  }
  
  .nav-item i {
    font-size: 15px;
  }
  
  .nav-item span {
    font-size: 13px;
  }
  
  .hot-badge {
    font-size: 9px;
    padding: 2px 6px;
    top: -5px;
    right: -5px;
  }
  
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .trust-item {
    padding: 15px;
    text-align: center;
  }
  
  .trust-item i {
    font-size: 20px;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px 20px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .social-icons {
    gap: 15px;
  }
  
  .social-icon {
    min-width: 70px;
    padding: 12px;
  }
  
  .payment-icons {
    justify-content: center;
  }
  
  .trust-section {
    padding: 30px 20px;
  }
  
  .rating-section {
    padding: 30px 20px;
  }
  
  .social-section {
    padding: 30px 20px;
  }
  
  .footer-bottom {
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .header .top-bar {
    padding: 10px 12px;
  }
  
  .left-side {
    gap: 10px;
  }
  
  .logo-image {
    width: 50px;
    height: 50px;
  }
  
  .bars-container {
    margin: 0 8px;
    font-size: 20px;
  }
  
  .trust-badges {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .trust-item {
    padding: 12px;
    gap: 8px;
  }
  
  .trust-item span {
    font-size: 14px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 15px;
  }
  
  .payment-icons {
    justify-content: center;
    gap: 10px;
  }
  
  .payment-icon {
    width: 45px;
    height: 32px;
  }
  
  .social-icons {
    gap: 10px;
  }
  
  .social-icon {
    min-width: 60px;
    padding: 10px;
  }
  
  .social-icon i {
    font-size: 20px;
  }
  
  .social-icon span {
    font-size: 11px;
  }
  
  .nav-container {
    padding: 10px 15px;
    gap: 6px;
  }
  
  .nav-item {
    padding: 10px 12px;
    font-size: 12px;
    gap: 6px;
    border-radius: 12px;
  }
  
  .nav-item i {
    font-size: 13px;
    min-width: 13px;
  }
  
  .nav-item span {
    font-size: 12px;
  }
  
  .hot-badge {
    font-size: 8px;
    padding: 2px 4px;
    top: -4px;
    right: -4px;
    border-radius: 8px;
  }
  
  .mobile-search-container {
    padding: 10px 12px;
  }
  
  .mobile-search-container input {
    font-size: 14px;
  }
  
  .login-header-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
  
  .trust-section {
    padding: 25px 15px;
  }
  
  .rating-section {
    padding: 25px 15px;
  }
  
  .social-section {
    padding: 25px 15px;
  }
  
  .footer-bottom {
    padding: 20px 15px;
  }
  
  .rating-stars i {
    font-size: 20px;
  }
  
  .rating-text {
    font-size: 18px;
  }
  
  .rate-us-btn {
    padding: 10px 25px;
    font-size: 14px;
  }
  
  .currency-selector-wrapper {
    min-width: 80px;
    padding: 0 8px;
  }
  
  .currency-selector-wrapper select {
    font-size: 13px;
  }
}

/* تحسينات إضافية للأداء والتصميم */
.header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100 !important;
}

.nav-bar {
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 50 !important;
}

.footer {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.user-dropdown {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* تأثيرات الرسوم المتحركة المحسنة */
@keyframes slideInFromTop {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* للأجهزة الصغيرة جداً (أقل من 375px) */
@media (max-width: 375px) {
  .nav-container {
    padding: 8px 12px;
    gap: 4px;
  }
  
  .nav-item {
    padding: 8px 10px;
    font-size: 11px;
    gap: 5px;
    border-radius: 10px;
  }
  
  .nav-item i {
    font-size: 12px;
    min-width: 12px;
  }
  
  .nav-item span {
    font-size: 11px;
  }
  
  .hot-badge {
    font-size: 7px;
    padding: 1px 3px;
    top: -3px;
    right: -3px;
    border-radius: 6px;
  }
}

/* للأجهزة الكبيرة جداً (أكبر من 1400px) */
@media (min-width: 1400px) {
  .nav-container {
    padding: 18px 30px;
    gap: 15px;
  }
  
  .nav-item {
    padding: 16px 22px;
    font-size: 15px;
    gap: 12px;
    border-radius: 18px;
  }
  
  .nav-item i {
    font-size: 18px;
  }
  
  .nav-item span {
    font-size: 15px;
  }
  
  .hot-badge {
    font-size: 11px;
    padding: 4px 8px;
    top: -7px;
    right: -7px;
    border-radius: 12px;
  }
}

@keyframes fadeInScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.nav-item {
  animation: slideInFromTop 0.3s ease-out;
}

.trust-item {
  animation: fadeInScale 0.4s ease-out;
}

.social-icon {
  animation: fadeInScale 0.3s ease-out;
}

/* تحسين الخطوط للعربية */
.nav-item,
.trust-item span,
.footer-section h4,
.social-section h4 {
  font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
  letter-spacing: 0.5px;
}

/* تحسين الألوان للوضع الليلي */
:root {
  --primary-red: #ff0033;
  --secondary-red: #cc0028;
  --dark-bg: #0a0a0a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
}

/* تحسين التباين للقراءة */
.trust-item span,
.footer-section h4,
.social-section h4,
.rating-text {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* تحسين الاستجابة للمس */
@media (hover: none) and (pointer: coarse) {
  .nav-item:hover,
  .trust-item:hover,
  .social-icon:hover {
    transform: none;
  }
  
  .nav-item:active,
  .trust-item:active,
  .social-icon:active {
    transform: scale(0.98);
  }
}
