@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Cairo:wght@300;400;500;600;700&display=swap');

/* ==========================================
   FAST TIME PHONE – Global Design System
   Cyberpunk / Neon Tech Theme
   ========================================== */

:root {
  --electric-blue: #00D1FF;
  --neon-orange: #FF7A00;
  --deep-black: #0A0A0A;
  --dark-bg: #0D0D0D;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(0, 209, 255, 0.15);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.35);
  --success: #00FF88;
  --error: #FF3B5C;
  --warning: #FFD700;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --sidebar-width: 260px;

  /* Blue glow shadows */
  --glow-blue: 0 0 20px rgba(0, 209, 255, 0.4), 0 0 40px rgba(0, 209, 255, 0.15);
  --glow-orange: 0 0 20px rgba(255, 122, 0, 0.4), 0 0 40px rgba(255, 122, 0, 0.15);
  --glow-blue-sm: 0 0 10px rgba(0, 209, 255, 0.3);
  --glow-orange-sm: 0 0 10px rgba(255, 122, 0, 0.3);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Gradients */
  --gradient-blue: linear-gradient(135deg, #00D1FF, #0050FF);
  --gradient-orange: linear-gradient(135deg, #FF7A00, #FF4500);
  --gradient-dark: linear-gradient(180deg, #0A0A0A 0%, #0D0F1A 100%);
  --gradient-card: linear-gradient(135deg, rgba(0,209,255,0.08), rgba(255,122,0,0.03));

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--deep-black);
  color: var(--text-primary);
  font-family: 'Inter', 'Cairo', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0, 209, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(255, 122, 0, 0.04) 0%, transparent 50%);
}

/* RTL Support */
[dir="rtl"] {
  font-family: 'Cairo', 'Inter', sans-serif;
}

[dir="rtl"] .ltr-only {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', 'Cairo', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: 'Cairo', 'Orbitron', sans-serif;
  letter-spacing: 0;
}

.text-gradient-blue {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-orange {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-blue { color: var(--electric-blue); }
.text-orange { color: var(--neon-orange); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb {
  background: var(--electric-blue);
  border-radius: 4px;
  opacity: 0.5;
}
::-webkit-scrollbar-thumb:hover { background: var(--neon-orange); }

/* ==========================================
   GLASSMORPHISM CARDS
   ========================================== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(0, 209, 255, 0.3);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.neon-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.neon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: var(--transition);
}

.neon-card:hover::before { opacity: 1; }
.neon-card:hover {
  border-color: var(--electric-blue);
  box-shadow: var(--glow-blue);
  transform: translateY(-3px);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-blue);
  color: #000;
  font-weight: 700;
}

.btn-primary:hover {
  box-shadow: var(--glow-blue);
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}

.btn-orange {
  background: var(--gradient-orange);
  color: #fff;
  font-weight: 700;
}

.btn-orange:hover {
  box-shadow: var(--glow-orange);
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--electric-blue);
  color: var(--electric-blue);
}

.btn-outline:hover {
  background: rgba(0, 209, 255, 0.1);
  box-shadow: var(--glow-blue-sm);
}

.btn-outline-orange {
  background: transparent;
  border: 1px solid var(--neon-orange);
  color: var(--neon-orange);
}

.btn-outline-orange:hover {
  background: rgba(255, 122, 0, 0.1);
  box-shadow: var(--glow-orange-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--glass-bg);
  color: var(--electric-blue);
}

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--radius-sm); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================
   FORM INPUTS
   ========================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.form-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.1);
  background: rgba(0, 209, 255, 0.04);
}

.form-input:invalid { border-color: var(--error); }

/* ==========================================
   BADGES
   ========================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-blue {
  background: rgba(0,209,255,0.15);
  color: var(--electric-blue);
  border: 1px solid rgba(0,209,255,0.3);
}

.badge-orange {
  background: rgba(255,122,0,0.15);
  color: var(--neon-orange);
  border: 1px solid rgba(255,122,0,0.3);
}

.badge-success {
  background: rgba(0,255,136,0.15);
  color: var(--success);
  border: 1px solid rgba(0,255,136,0.3);
}

.badge-error {
  background: rgba(255,59,92,0.15);
  color: var(--error);
  border: 1px solid rgba(255,59,92,0.3);
}

.badge-warning {
  background: rgba(255,215,0,0.15);
  color: var(--warning);
  border: 1px solid rgba(255,215,0,0.3);
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-family: 'Orbitron', 'Cairo', sans-serif;
  color: var(--text-primary);
  margin-bottom: 12px;
}

[dir="rtl"] .section-title {
  font-family: 'Cairo', sans-serif;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-blue);
  margin: 12px auto 0;
  border-radius: 2px;
  box-shadow: var(--glow-blue-sm);
}

/* ==========================================
   GRID LAYOUTS
   ========================================== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.products-grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0,209,255,0.3); }
  50% { box-shadow: 0 0 30px rgba(0,209,255,0.6), 0 0 60px rgba(0,209,255,0.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes neon-flicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.8; }
  97% { opacity: 1; }
  98% { opacity: 0.7; }
  99% { opacity: 1; }
}

@keyframes particle-float {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-20px) translateX(40px); opacity: 0; }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-glow-pulse { animation: glow-pulse 2s ease-in-out infinite; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.4s ease forwards; }
.animate-neon { animation: neon-flicker 5s ease-in-out infinite; }

/* ==========================================
   LOADING SKELETON
   ========================================== */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.06) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--electric-blue);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: var(--text-primary);
  backdrop-filter: blur(20px);
  box-shadow: var(--glow-blue);
  z-index: 9999;
  animation: slideInRight 0.3s ease;
  max-width: 320px;
  font-size: 0.9rem;
}

[dir="rtl"] .toast {
  right: auto;
  left: 24px;
  animation: slideInLeft 0.3s ease;
}

/* ==========================================
   PAGE LAYOUT
   ========================================== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding-top: 80px; /* header height */
}

/* ==========================================
   COUNTDOWN TIMER
   ========================================== */
.countdown {
  display: flex;
  gap: 8px;
  align-items: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,209,255,0.3);
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 44px;
}

.countdown-value {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--electric-blue);
  line-height: 1;
}

.countdown-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown-sep {
  color: var(--electric-blue);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* ==========================================
   STAR RATING
   ========================================== */
.stars {
  display: flex;
  gap: 3px;
  align-items: center;
}

.star {
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.star.filled { color: var(--warning); }
.star.half { color: var(--warning); opacity: 0.6; }

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); transition: var(--transition-fast); }
.breadcrumb a:hover { color: var(--electric-blue); }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--electric-blue); }

/* ==========================================
   PRODUCT CARD
   ========================================== */
.product-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,209,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--electric-blue);
  box-shadow: 0 8px 40px rgba(0,209,255,0.2), 0 0 0 1px rgba(0,209,255,0.1);
  transform: translateY(-6px);
}

.product-card-image {
  position: relative;
  background: rgba(0,0,0,0.3);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}

[dir="rtl"] .product-card-actions {
  right: auto;
  left: 12px;
  transform: translateX(-10px);
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}

.product-card-action-btn:hover {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  color: #000;
}

.product-card-action-btn.active {
  background: var(--neon-orange);
  border-color: var(--neon-orange);
  color: #fff;
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

[dir="rtl"] .product-card-badge {
  left: auto;
  right: 12px;
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card-brand {
  font-size: 0.72rem;
  color: var(--electric-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.product-card-price .current {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--electric-blue);
}

.product-card-price .original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.product-card-footer .btn {
  width: 100%;
  font-size: 0.82rem;
  padding: 10px;
}

/* ==========================================
   RANGE SLIDER
   ========================================== */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--electric-blue);
  cursor: pointer;
  box-shadow: var(--glow-blue-sm);
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
  flex-wrap: wrap;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.pagination-btn:hover,
.pagination-btn.active {
  background: rgba(0,209,255,0.15);
  border-color: var(--electric-blue);
  color: var(--electric-blue);
  box-shadow: var(--glow-blue-sm);
}

/* ==========================================
   DIVIDER
   ========================================== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,209,255,0.3), transparent);
  margin: 40px 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
  .container { padding: 0 20px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .products-grid-wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .section-header { margin-bottom: 24px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .main-content { padding-top: 70px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .btn-lg { padding: 12px 24px; font-size: 0.9rem; }
}
