/* ============================================
   Al Hareer Al Abyed - The Electronics Hub
   Hostinger Version - Complete Store
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

/* ========== Animations ========== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pulse-dot { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }

.animate-fade { animation: fadeIn 0.6s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.5s ease-out forwards; }
.animate-shake { animation: shake 0.3s ease; }

/* ========== Gradients ========== */
.grad-cyan { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.grad-dark { background: linear-gradient(135deg, #0f172a, #1e293b); }

.text-grad { background: linear-gradient(135deg, #0891b2, #06b6d4, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ========== Installment Badge ========== */
.badge-install { background: linear-gradient(135deg, #059669, #10b981); }

/* ========== Card Hover ========== */
.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* ========== Cart ========== */
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: #ef4444; color: white; font-size: 11px;
  font-weight: 700; width: 20px; height: 20px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.cart-sidebar {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 100; pointer-events: none;
}
.cart-sidebar.active { pointer-events: all; }
.cart-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  opacity: 0; transition: opacity 0.3s;
}
.cart-sidebar.active .cart-overlay { opacity: 1; }
.cart-panel {
  position: absolute; top: 0; left: 0; width: 380px; max-width: 90%;
  height: 100%; background: white; transform: translateX(-100%);
  transition: transform 0.3s ease; overflow-y: auto;
}
.cart-sidebar.active .cart-panel { transform: translateX(0); }

/* ========== Bank Pages ========== */
.bank-sohar-bg { background: #1a1a1a; }
.bank-islamic-bg { background: #003366; }

/* ========== OTP Inputs ========== */
.otp-input {
  width: 48px; height: 56px; text-align: center; font-size: 22px;
  font-weight: 700; border-radius: 14px; border: 2px solid #e2e8f0;
  background: #f8fafc; outline: none; transition: all 0.2s;
  font-family: 'Cairo', sans-serif;
}
.otp-input:focus { border-color: #0891b2; box-shadow: 0 0 0 4px rgba(8,145,178,0.12); }
.otp-input.filled { border-color: #f97316; background: #fff7ed; color: #c2410c; }

/* ========== Form Inputs ========== */
.input-field {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1px solid #e2e8f0; background: white;
  font-size: 0.95rem; transition: all 0.2s; outline: none;
  font-family: 'Cairo', sans-serif;
}
.input-field:focus { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8,145,178,0.15); }

/* ========== Buttons ========== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: white; border-radius: 14px; font-weight: 700; border: none;
  cursor: pointer; transition: all 0.3s; font-family: 'Cairo', sans-serif; font-size: 1rem;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(8,145,178,0.3); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: 2px solid #0891b2; color: #0891b2;
  border-radius: 14px; font-weight: 600; background: transparent;
  cursor: pointer; transition: all 0.3s; font-family: 'Cairo', sans-serif;
}
.btn-secondary:hover { background: #0891b2; color: white; }

.btn-orange {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; background: #f97316; color: white;
  border-radius: 50px; font-weight: 700; border: none;
  cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 1.1rem; width: 100%;
}
.btn-orange:hover { background: #ea580c; }

/* ========== Cards ========== */
.card { background: white; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; }

/* ========== Section ========== */
.section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }

/* ========== Spinner ========== */
.spinner { display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
  border-radius: 50%; animation: spin 0.8s linear infinite;
  vertical-align: middle; margin-left: 8px;
}

/* ========== Range Slider ========== */
input[type=range] { -webkit-appearance: none; height: 6px; border-radius: 3px; background: #e2e8f0; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #0891b2; cursor: pointer; }

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #0891b2; border-radius: 3px; }

/* ========== Print ========== */
@media print { .no-print { display: none !important; } }

/* ========== Responsive ========== */
@media (max-width: 640px) { .section { padding: 40px 16px; } .cart-panel { width: 100% !important; max-width: 100% !important; } }
