/* ============================================
   LensWorld - Main Stylesheet
   متجر الكاميرات والعدسات
============================================ */

/* ═══════════════════════════════════════
   CSS Variables - المتغيرات الأساسية
═══════════════════════════════════════ */
:root {
  --primary:       #e8500a;
  --primary-dark:  #c43d00;
  --primary-light: #ff6b35;
  --secondary:     #1a1a2e;
  --accent:        #f5a623;
  --dark:          #0d0d1a;
  --gray-dark:     #2d2d3d;
  --gray:          #6c757d;
  --light-bg:      #f8f9fa;
  --card-bg:       #ffffff;
  --border:        #e9ecef;
  --shadow:        0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover:  0 8px 30px rgba(232, 80, 10, 0.2);
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    all 0.3s ease;
  --font-main:     'Cairo', 'Tajawal', sans-serif;
}

/* ═══════════════════════════════════════
   Base - الأساس
═══════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:      var(--font-main);
  background-color: var(--light-bg);
  color:            var(--dark);
  line-height:      1.7;
  overflow-x:       hidden;
  direction:        rtl;
}

a {
  text-decoration: none;
  transition:      var(--transition);
}

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

ul {
  list-style: none;
  padding:    0;
  margin:     0;
}

/* ═══════════════════════════════════════
   Scrollbar - شريط التمرير
═══════════════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
  background:    rgba(232, 80, 10, 0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ═══════════════════════════════════════
   Promo Bar - شريط الإعلانات
═══════════════════════════════════════ */
.promo-bar {
  background: linear-gradient(90deg, var(--secondary), var(--gray-dark));
  color:       #d0d0e0;
  font-size:   0.82rem;
  letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════
   Navbar - شريط التنقل
═══════════════════════════════════════ */
#mainNav {
  background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
  box-shadow:  0 2px 20px rgba(0, 0, 0, 0.3);
  padding:     10px 0;
  transition:  var(--transition);
  z-index:     1050;
}

#mainNav .navbar-nav .nav-link {
  color:         rgba(255, 255, 255, 0.85) !important;
  font-weight:   500;
  font-size:     0.9rem;
  padding:       8px 14px !important;
  border-radius: var(--radius-sm);
  transition:    var(--transition);
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link.active {
  color:      #fff !important;
  background: rgba(232, 80, 10, 0.25);
}

/* Logo */
.logo-icon {
  width:           42px;
  height:          42px;
  background:      linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius:   10px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       1.2rem;
  color:           #fff;
  box-shadow:      0 4px 15px rgba(232, 80, 10, 0.4);
  flex-shrink:     0;
}

.brand-name {
  font-size:   1.4rem;
  font-weight: 900;
  background:  linear-gradient(135deg, #fff, #d0d0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:         text;
}

.brand-tagline {
  font-size:  0.65rem;
  color:      rgba(255, 255, 255, 0.5);
  margin-top: -4px;
}

/* Search Bar */
.search-bar {
  max-width: 500px;
  position:  relative;
}

.search-input {
  background:    rgba(255, 255, 255, 0.1);
  border:        1px solid rgba(255, 255, 255, 0.2);
  color:         #fff;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
  padding:       8px 16px;
  font-family:   var(--font-main);
  transition:    var(--transition);
}

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

.search-input:focus {
  background:    rgba(255, 255, 255, 0.15);
  border-color:  var(--primary);
  box-shadow:    0 0 0 0.2rem rgba(232, 80, 10, 0.25);
  color:         #fff;
  outline:       none;
}

.btn-search {
  background:    var(--primary);
  color:         #fff;
  border:        none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  padding:       8px 18px;
  cursor:        pointer;
  transition:    var(--transition);
}

.btn-search:hover {
  background: var(--primary-dark);
  color:      #fff;
}

/* Search Dropdown */
.search-dropdown {
  position:      absolute;
  top:           calc(100% + 4px);
  left:          0;
  right:         0;
  z-index:       9999;
  background:    var(--secondary);
  border:        1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  box-shadow:    0 10px 40px rgba(0, 0, 0, 0.4);
  max-height:    350px;
  overflow-y:    auto;
  display:       none;
}

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

.search-item {
  display:         flex;
  align-items:     center;
  gap:             12px;
  padding:         10px 14px;
  border-bottom:   1px solid rgba(255, 255, 255, 0.05);
  color:           rgba(255, 255, 255, 0.85);
  cursor:          pointer;
  transition:      var(--transition);
  text-decoration: none;
}

.search-item:hover {
  background: rgba(232, 80, 10, 0.2);
  color:      #fff;
}

.search-item img {
  width:         40px;
  height:        40px;
  object-fit:    cover;
  border-radius: 6px;
  flex-shrink:   0;
}

/* Nav Icons */
.nav-icon-btn {
  background:    rgba(255, 255, 255, 0.1);
  color:         rgba(255, 255, 255, 0.9) !important;
  border:        none;
  border-radius: var(--radius-sm);
  padding:       8px 12px;
  cursor:        pointer;
  transition:    var(--transition);
  font-size:     0.9rem;
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
}

.nav-icon-btn:hover {
  background: rgba(232, 80, 10, 0.3);
  color:      #fff !important;
}

.cart-badge {
  position:        absolute;
  top:             -6px;
  right:           -6px;
  background:      var(--primary);
  color:           #fff;
  font-size:       0.65rem;
  width:           18px;
  height:          18px;
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-weight:     700;
}

/* User Avatar */
.user-avatar-sm {
  width:           30px;
  height:          30px;
  background:      linear-gradient(135deg, var(--primary), var(--accent));
  color:           #fff;
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-weight:     700;
  font-size:       0.85rem;
  flex-shrink:     0;
}

/* User Dropdown */
.user-dropdown {
  background:    var(--secondary);
  border:        1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow:    0 10px 40px rgba(0, 0, 0, 0.4);
  min-width:     220px;
}

.user-dropdown .dropdown-header {
  color:   #fff;
  padding: 12px 16px;
}

.user-dropdown .dropdown-item {
  color:      rgba(255, 255, 255, 0.8);
  padding:    8px 16px;
  transition: var(--transition);
  font-family: var(--font-main);
}

.user-dropdown .dropdown-item:hover {
  background: rgba(232, 80, 10, 0.2);
  color:      #fff;
}

.user-dropdown .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

.dropdown-toggle::after {
  display: none;
}

/* ═══════════════════════════════════════
   Buttons - الأزرار
═══════════════════════════════════════ */
.btn-primary-custom {
  background:    linear-gradient(135deg, var(--primary), var(--primary-light));
  color:         #fff;
  border:        none;
  border-radius: var(--radius-sm);
  font-weight:   600;
  font-family:   var(--font-main);
  transition:    var(--transition);
  display:       inline-flex;
  align-items:   center;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background:  linear-gradient(135deg, var(--primary-dark), var(--primary));
  color:       #fff;
  transform:   translateY(-1px);
  box-shadow:  0 4px 15px rgba(232, 80, 10, 0.4);
}

.btn-outline-primary-custom {
  border:        2px solid var(--primary);
  color:         var(--primary);
  border-radius: var(--radius-sm);
  font-weight:   600;
  font-family:   var(--font-main);
  background:    transparent;
  transition:    var(--transition);
}

.btn-outline-primary-custom:hover {
  background: var(--primary);
  color:      #fff;
  transform:  translateY(-1px);
}

/* ═══════════════════════════════════════
   Hero Section
═══════════════════════════════════════ */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--dark)      0%,
    var(--secondary) 50%,
    #1e1b4b          100%
  );
  min-height: 580px;
  position:   relative;
  overflow:   hidden;
  display:    flex;
  align-items: center;
}

.hero-section::before {
  content:  '';
  position: absolute;
  inset:    0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e8500a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-title {
  font-size:   clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color:       #fff;
  line-height: 1.3;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:         text;
}

.hero-subtitle {
  color:     rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  gap:     2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-size:   1.8rem;
  font-weight: 900;
  color:       var(--primary-light);
}

.hero-stat .label {
  color:     rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.hero-badge {
  background:    rgba(232, 80, 10, 0.2);
  border:        1px solid rgba(232, 80, 10, 0.3);
  color:         var(--primary-light);
  padding:       6px 16px;
  border-radius: 50px;
  font-size:     0.85rem;
  font-weight:   600;
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
  margin-bottom: 1rem;
}

.hero-image-wrap {
  position:   relative;
  text-align: center;
}

.hero-image-wrap img {
  max-height: 420px;
  filter:     drop-shadow(0 20px 60px rgba(232, 80, 10, 0.3));
  animation:  float 4s ease-in-out infinite;
  position:   relative;
  z-index:    1;
}

.hero-glow {
  position:      absolute;
  width:         350px;
  height:        350px;
  background:    radial-gradient(circle, rgba(232, 80, 10, 0.3), transparent 70%);
  top:           50%;
  left:          50%;
  transform:     translate(-50%, -50%);
  border-radius: 50%;
  z-index:       0;
}

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

/* ═══════════════════════════════════════
   Section Styles - أقسام الصفحة
═══════════════════════════════════════ */
.section-title {
  font-size:    1.8rem;
  font-weight:  900;
  position:     relative;
  display:      inline-block;
  padding-bottom: 12px;
}

.section-title::after {
  content:       '';
  position:      absolute;
  bottom:        0;
  right:         0;
  width:         50px;
  height:        4px;
  background:    linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.section-header {
  margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════════
   Category Cards - بطاقات الفئات
═══════════════════════════════════════ */
.category-card {
  border-radius: var(--radius);
  overflow:      hidden;
  position:      relative;
  height:        200px;
  cursor:        pointer;
  transition:    var(--transition);
  display:       block;
  text-decoration: none;
}

.category-card:hover {
  transform:  translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.category-card-inner {
  position:        absolute;
  inset:           0;
  background:      linear-gradient(135deg, var(--secondary), var(--gray-dark));
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  padding:         1.5rem;
  text-align:      center;
  border:          2px solid transparent;
  transition:      var(--transition);
}

.category-card:hover .category-card-inner {
  border-color: var(--primary);
}

.category-icon {
  font-size:     2.5rem;
  margin-bottom: 0.8rem;
  background:    linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:         text;
}

.category-name {
  color:       #fff;
  font-weight: 700;
  font-size:   1rem;
}

.category-count {
  color:     rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ═══════════════════════════════════════
   Product Cards - بطاقات المنتجات
═══════════════════════════════════════ */
.product-card {
  background:    var(--card-bg);
  border-radius: var(--radius);
  box-shadow:    var(--shadow);
  overflow:      hidden;
  transition:    var(--transition);
  position:      relative;
  display:       flex;
  flex-direction: column;
  border:        1px solid var(--border);
}

.product-card:hover {
  transform:    translateY(-6px);
  box-shadow:   var(--shadow-hover);
  border-color: rgba(232, 80, 10, 0.2);
}

.product-img-wrap {
  position:   relative;
  overflow:   hidden;
  background: var(--light-bg);
  height:     220px;
}

.product-img-wrap img {
  width:      100%;
  height:     100%;
  object-fit: contain;
  padding:    1rem;
  transition: transform 0.4s ease;
}

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

/* Badges */
.product-badges {
  position:       absolute;
  top:            10px;
  right:          10px;
  display:        flex;
  flex-direction: column;
  gap:            5px;
  z-index:        1;
}

.badge-new      { background: #10b981; color: #fff; }
.badge-sale     { background: var(--primary); color: #fff; }
.badge-featured { background: var(--accent); color: #000 !important; }

/* Action Buttons */
.product-actions {
  position:   absolute;
  top:        10px;
  left:       10px;
  display:    flex;
  flex-direction: column;
  gap:        6px;
  opacity:    0;
  transform:  translateX(-10px);
  transition: var(--transition);
  z-index:    1;
}

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

.action-btn {
  width:           36px;
  height:          36px;
  background:      #fff;
  border:          none;
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  box-shadow:      0 2px 10px rgba(0, 0, 0, 0.1);
  cursor:          pointer;
  font-size:       0.85rem;
  color:           var(--gray);
  transition:      var(--transition);
  text-decoration: none;
}

.action-btn:hover {
  background: var(--primary);
  color:      #fff;
  transform:  scale(1.1);
}

/* Product Body */
.product-body {
  padding: 1rem;
  flex:    1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size:      0.75rem;
  font-weight:    600;
  color:          var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size:   0.95rem;
  font-weight: 700;
  color:       var(--dark);
  margin:      4px 0 8px;
  display:     -webkit-box;
  -webkit-line-clamp:  2;
  line-clamp: 2;
  -webkit-box-orient:  vertical;
  overflow:    hidden;
  line-height: 1.4;
}

.product-name:hover {
  color: var(--primary);
}

.product-rating {
  display:     flex;
  align-items: center;
  gap:         3px;
  font-size:   0.8rem;
  color:       var(--accent);
}

.product-rating .count {
  color: var(--gray);
}

/* Product Footer */
.product-footer {
  padding:         0.8rem 1rem 1rem;
  border-top:      1px solid var(--border);
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             8px;
}

.product-price .current {
  font-size:   1.1rem;
  font-weight: 800;
  color:       var(--primary);
  line-height: 1.2;
}

.product-price .old {
  font-size:       0.8rem;
  color:           var(--gray);
  text-decoration: line-through;
}

.btn-add-cart {
  background:    linear-gradient(135deg, var(--secondary), var(--gray-dark));
  color:         #fff;
  border:        none;
  border-radius: var(--radius-sm);
  padding:       7px 14px;
  font-size:     0.85rem;
  font-weight:   600;
  cursor:        pointer;
  transition:    var(--transition);
  white-space:   nowrap;
  font-family:   var(--font-main);
  display:       inline-flex;
  align-items:   center;
  gap:           4px;
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform:  scale(1.02);
}

.btn-add-cart:disabled {
  background: #ccc;
  cursor:     not-allowed;
  transform:  none;
}

/* ═══════════════════════════════════════
   Feature Boxes - صناديق المميزات
═══════════════════════════════════════ */
.feature-box {
  background:    #fff;
  border-radius: var(--radius);
  padding:       1.5rem;
  text-align:    center;
  border:        1px solid var(--border);
  transition:    var(--transition);
  height:        100%;
}

.feature-box:hover {
  border-color: var(--primary);
  box-shadow:   var(--shadow-hover);
  transform:    translateY(-3px);
}

.feature-icon {
  width:           60px;
  height:          60px;
  background:      linear-gradient(
    135deg,
    rgba(232, 80, 10, 0.1),
    rgba(245, 166, 35, 0.1)
  );
  border-radius:   50%;
  margin:          0 auto 1rem;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       1.5rem;
  color:           var(--primary);
}

.feature-title {
  font-weight:   700;
  font-size:     0.95rem;
  margin-bottom: 0.4rem;
}

.feature-text {
  font-size: 0.85rem;
  color:     var(--gray);
}

/* ═══════════════════════════════════════
   Auth Pages - صفحات التوثيق
═══════════════════════════════════════ */
.auth-wrapper {
  min-height:      100vh;
  background:      linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         2rem 1rem;
  position:        relative;
  overflow:        hidden;
}

.auth-wrapper::before {
  content:       '';
  position:      absolute;
  width:         600px;
  height:        600px;
  background:    radial-gradient(circle, rgba(232, 80, 10, 0.15), transparent 70%);
  top:           -200px;
  right:         -200px;
  border-radius: 50%;
  pointer-events: none;
}

.auth-wrapper::after {
  content:       '';
  position:      absolute;
  width:         400px;
  height:        400px;
  background:    radial-gradient(circle, rgba(100, 100, 255, 0.1), transparent 70%);
  bottom:        -100px;
  left:          -100px;
  border-radius: 50%;
  pointer-events: none;
}

.auth-card {
  background:      rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border:          1px solid rgba(255, 255, 255, 0.1);
  border-radius:   20px;
  padding:         2.5rem;
  width:           100%;
  max-width:       480px;
  position:        relative;
  z-index:         1;
  box-shadow:      0 25px 60px rgba(0, 0, 0, 0.4);
}

.auth-logo {
  text-align:    center;
  margin-bottom: 1.5rem;
}

.auth-logo .logo-icon {
  margin:        0 auto 0.8rem;
  width:         60px;
  height:        60px;
  font-size:     1.6rem;
}

.auth-title {
  color:         #fff;
  font-size:     1.6rem;
  font-weight:   800;
  text-align:    center;
  margin-bottom: 0.3rem;
}

.auth-subtitle {
  color:     rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 0.9rem;
}

.auth-card .form-label {
  color:       rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size:   0.9rem;
}

.auth-card .form-control,
.auth-card .form-select {
  background:    rgba(255, 255, 255, 0.08);
  border:        1px solid rgba(255, 255, 255, 0.15);
  color:         #fff;
  border-radius: var(--radius-sm);
  padding:       10px 14px;
  font-family:   var(--font-main);
  transition:    var(--transition);
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
  background:    rgba(255, 255, 255, 0.12);
  border-color:  var(--primary);
  box-shadow:    0 0 0 3px rgba(232, 80, 10, 0.2);
  color:         #fff;
  outline:       none;
}

.auth-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.auth-card .input-group-text {
  background:    rgba(255, 255, 255, 0.08);
  border:        1px solid rgba(255, 255, 255, 0.15);
  color:         rgba(255, 255, 255, 0.6);
}

.auth-card .form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color:     rgba(255, 255, 255, 0.3);
}

.auth-card .form-check-input:checked {
  background-color: var(--primary);
  border-color:     var(--primary);
}

.btn-auth {
  background:    linear-gradient(135deg, var(--primary), var(--primary-light));
  color:         #fff;
  border:        none;
  width:         100%;
  padding:       12px;
  font-size:     1rem;
  font-weight:   700;
  border-radius: var(--radius-sm);
  transition:    var(--transition);
  font-family:   var(--font-main);
  cursor:        pointer;
  margin-top:    0.5rem;
}

.btn-auth:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform:  translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 80, 10, 0.4);
  color:      #fff;
}

.auth-divider {
  text-align: center;
  position:   relative;
  margin:     1.5rem 0;
}

.auth-divider::before {
  content:    '';
  position:   absolute;
  top:        50%;
  left:       0;
  right:      0;
  height:     1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
  background: transparent;
  color:      rgba(255, 255, 255, 0.4);
  padding:    0 12px;
  font-size:  0.85rem;
  position:   relative;
}

.auth-link {
  color:       var(--primary-light) !important;
  font-weight: 600;
}

.auth-link:hover {
  color: var(--accent) !important;
}

/* Role Badges */
.role-badge {
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
  padding:       4px 12px;
  border-radius: 50px;
  font-size:     0.78rem;
  font-weight:   600;
}

.role-admin {
  background: rgba(220, 53, 69, 0.2);
  color:      #ff6b7a;
  border:     1px solid rgba(220, 53, 69, 0.3);
}

.role-supervisor {
  background: rgba(255, 193, 7, 0.2);
  color:      var(--accent);
  border:     1px solid rgba(255, 193, 7, 0.3);
}

.role-user {
  background: rgba(13, 202, 240, 0.2);
  color:      #6edff6;
  border:     1px solid rgba(13, 202, 240, 0.3);
}

/* ═══════════════════════════════════════
   Admin Panel - لوحة الإدارة
═══════════════════════════════════════ */
.admin-sidebar {
  background:    linear-gradient(180deg, var(--secondary) 0%, var(--dark) 100%);
  min-height:    100vh;
  width:         260px;
  position:      fixed;
  top:           0;
  right:         0;
  z-index:       1000;
  padding-top:   1rem;
  box-shadow:    -4px 0 20px rgba(0, 0, 0, 0.3);
  overflow-y:    auto;
  transition:    var(--transition);
}

.admin-main {
  margin-right: 260px;
  min-height:   100vh;
  background:   #f0f2f5;
  transition:   var(--transition);
}

.admin-sidebar-logo {
  padding:       1rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.sidebar-nav-item {
  display:        flex;
  align-items:    center;
  gap:            12px;
  padding:        10px 20px;
  color:          rgba(255, 255, 255, 0.65) !important;
  border-radius:  0 var(--radius) var(--radius) 0;
  margin:         2px 12px 2px 0;
  transition:     var(--transition);
  font-weight:    500;
  font-size:      0.9rem;
  text-decoration: none;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
  background:   linear-gradient(90deg, rgba(232, 80, 10, 0.3), rgba(232, 80, 10, 0.1));
  color:        #fff !important;
  border-right: 3px solid var(--primary);
}

.sidebar-nav-item i {
  width:      20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-section-title {
  font-size:      0.72rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color:          rgba(255, 255, 255, 0.3);
  padding:        10px 20px 5px;
}

/* Admin Header */
.admin-header {
  background:     #fff;
  padding:        1rem 1.5rem;
  border-bottom:  1px solid var(--border);
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  box-shadow:     0 2px 10px rgba(0, 0, 0, 0.05);
  position:       sticky;
  top:            0;
  z-index:        100;
  flex-wrap:      wrap;
  gap:            1rem;
}

/* Stat Cards */
.stat-card {
  background:    #fff;
  border-radius: var(--radius);
  padding:       1.5rem;
  box-shadow:    var(--shadow);
  display:       flex;
  align-items:   center;
  gap:           1rem;
  border-right:  4px solid var(--primary);
  transition:    var(--transition);
  height:        100%;
}

.stat-card:hover {
  transform:  translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width:           55px;
  height:          55px;
  border-radius:   var(--radius-sm);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       1.5rem;
  flex-shrink:     0;
}

.stat-icon.bg-primary-soft { background: rgba(232, 80, 10, 0.1);   color: var(--primary); }
.stat-icon.bg-success-soft { background: rgba(16, 185, 129, 0.1);  color: #10b981; }
.stat-icon.bg-warning-soft { background: rgba(245, 166, 35, 0.1);  color: var(--accent); }
.stat-icon.bg-info-soft    { background: rgba(59, 130, 246, 0.1);  color: #3b82f6; }

.stat-num {
  font-size:   1.8rem;
  font-weight: 900;
  color:       var(--dark);
  line-height: 1;
}

.stat-label {
  font-size:   0.85rem;
  color:       var(--gray);
  font-weight: 600;
  margin-top:  4px;
}

/* Admin Table */
.admin-table {
  background:    #fff;
  border-radius: var(--radius);
  box-shadow:    var(--shadow);
  overflow:      hidden;
}

.admin-table table {
  margin:    0;
  font-size: 0.9rem;
}

.admin-table thead th {
  background:  var(--secondary);
  color:       rgba(255, 255, 255, 0.8);
  font-weight: 600;
  border:      none;
  padding:     12px 16px;
  white-space: nowrap;
}

.admin-table tbody td {
  padding:          12px 16px;
  vertical-align:   middle;
  border-color:     var(--border);
}

.admin-table tbody tr:hover {
  background: rgba(232, 80, 10, 0.03);
}

/* ═══════════════════════════════════════
   Cart - سلة التسوق
═══════════════════════════════════════ */
.cart-item {
  background:    #fff;
  border-radius: var(--radius);
  padding:       1rem;
  margin-bottom: 1rem;
  border:        1px solid var(--border);
  box-shadow:    var(--shadow);
}

/* ═══════════════════════════════════════
   Order Timeline - مراحل الطلب
═══════════════════════════════════════ */
.order-timeline {
  position:     relative;
  padding-right: 1.5rem;
}

.order-timeline::before {
  content:    '';
  position:   absolute;
  right:      7px;
  top:        0;
  bottom:     0;
  width:      2px;
  background: var(--border);
}

.timeline-item {
  position:       relative;
  padding-bottom: 1.5rem;
}

.timeline-dot {
  width:         16px;
  height:        16px;
  border-radius: 50%;
  position:      absolute;
  right:         -8px;
  top:           4px;
  background:    var(--primary);
  border:        2px solid #fff;
  box-shadow:    0 0 0 3px rgba(232, 80, 10, 0.2);
}

/* ═══════════════════════════════════════
   Status Badges - شارات الحالة
═══════════════════════════════════════ */
.status-badge {
  padding:       4px 10px;
  border-radius: 50px;
  font-size:     0.78rem;
  font-weight:   600;
  display:       inline-block;
}

.status-pending    { background: rgba(255, 193, 7, 0.15);    color: #b8860b; }
.status-confirmed  { background: rgba(59, 130, 246, 0.15);   color: #1d4ed8; }
.status-processing { background: rgba(139, 92, 246, 0.15);   color: #7c3aed; }
.status-shipped    { background: rgba(6, 182, 212, 0.15);    color: #0e7490; }
.status-delivered  { background: rgba(16, 185, 129, 0.15);   color: #065f46; }
.status-cancelled  { background: rgba(239, 68, 68, 0.15);    color: #b91c1c; }

/* ═══════════════════════════════════════
   Product Detail - تفاصيل المنتج
═══════════════════════════════════════ */
.product-detail-img {
  background:    var(--light-bg);
  border-radius: var(--radius);
  overflow:      hidden;
  border:        1px solid var(--border);
}

.thumbnail-list {
  display:   flex;
  gap:       8px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.thumbnail {
  width:         70px;
  height:        70px;
  object-fit:    contain;
  border:        2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor:        pointer;
  padding:       4px;
  transition:    var(--transition);
  background:    #fff;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary);
}

/* Star Rating */
.star-rating {
  display: flex;
  gap:     2px;
}

.star {
  color:      #ddd;
  font-size:  1.2rem;
  cursor:     pointer;
  transition: var(--transition);
}

.star.filled,
.star:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════
   Filter Card - بطاقة الفلاتر
═══════════════════════════════════════ */
.filter-card {
  background:    #fff;
  border-radius: var(--radius);
  padding:       1.2rem;
  margin-bottom: 1rem;
  border:        1px solid var(--border);
  box-shadow:    var(--shadow);
}

.filter-title {
  font-weight:   700;
  font-size:     0.95rem;
  margin-bottom: 0.8rem;
  color:         var(--dark);
}

/* ═══════════════════════════════════════
   Pagination
═══════════════════════════════════════ */
.pagination .page-link {
  color:         var(--primary);
  border-color:  var(--border);
  font-family:   var(--font-main);
  border-radius: var(--radius-sm) !important;
  margin:        0 2px;
  transition:    var(--transition);
}

.pagination .page-link:hover {
  background:   rgba(232, 80, 10, 0.1);
  border-color: var(--primary);
  color:        var(--primary);
}

.pagination .page-item.active .page-link {
  background:   var(--primary);
  border-color: var(--primary);
  color:        #fff;
}

.pagination .page-item.disabled .page-link {
  color:      #ccc;
  background: #f8f9fa;
}

/* ═══════════════════════════════════════
   Breadcrumb
═══════════════════════════════════════ */
.page-breadcrumb {
  background: linear-gradient(135deg, var(--secondary), var(--gray-dark));
  padding:    1rem 0;
}

.page-breadcrumb .breadcrumb-item {
  font-size: 0.85rem;
}

.page-breadcrumb .breadcrumb-item a {
  color:      rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.page-breadcrumb .breadcrumb-item a:hover {
  color: var(--primary-light);
}

.page-breadcrumb .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════
   Form Styles - نماذج الإدخال
═══════════════════════════════════════ */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border-color:  var(--border);
  font-family:   var(--font-main);
  transition:    var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow:   0 0 0 3px rgba(232, 80, 10, 0.15);
  outline:      none;
}

.form-label {
  font-weight: 600;
  font-size:   0.9rem;
}

/* ═══════════════════════════════════════
   Alerts - التنبيهات
═══════════════════════════════════════ */
.alert {
  border:        none;
  border-radius: var(--radius-sm);
  font-weight:   500;
  font-family:   var(--font-main);
}

.alert-success {
  background:   rgba(16, 185, 129, 0.1);
  color:        #065f46;
  border-right: 4px solid #10b981 !important;
}

.alert-danger {
  background:   rgba(239, 68, 68, 0.1);
  color:        #b91c1c;
  border-right: 4px solid #ef4444 !important;
}

.alert-warning {
  background:   rgba(245, 166, 35, 0.1);
  color:        #92400e;
  border-right: 4px solid var(--accent) !important;
}

.alert-info {
  background:   rgba(59, 130, 246, 0.1);
  color:        #1d4ed8;
  border-right: 4px solid #3b82f6 !important;
}

/* ═══════════════════════════════════════
   Footer - الذيل
═══════════════════════════════════════ */
.main-footer {
  background: linear-gradient(180deg, var(--secondary), var(--dark));
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-title {
  color:          #fff;
  font-weight:    700;
  font-size:      0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom:  1rem;
  padding-bottom: 8px;
  border-bottom:  2px solid var(--primary);
  display:        inline-block;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color:      rgba(255, 255, 255, 0.55);
  font-size:  0.9rem;
  transition: var(--transition);
  display:    inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color:        var(--primary-light);
  padding-right: 4px;
}

.footer-contact {
  list-style: none;
  padding:    0;
}

.footer-contact li {
  display:       flex;
  gap:           10px;
  margin-bottom: 12px;
  color:         rgba(255, 255, 255, 0.55);
  font-size:     0.9rem;
  align-items:   flex-start;
}

.social-link {
  width:           36px;
  height:          36px;
  background:      rgba(255, 255, 255, 0.08);
  border:          1px solid rgba(255, 255, 255, 0.1);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           rgba(255, 255, 255, 0.6);
  font-size:       0.9rem;
  transition:      var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background:   var(--primary);
  color:        #fff;
  border-color: var(--primary);
  transform:    translateY(-3px);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
}

.payment-icon {
  background: rgba(255, 255, 255, 0.07);
  color:      rgba(255, 255, 255, 0.5);
  padding:    4px 10px;
  border-radius: 6px;
  font-size:  0.78rem;
  display:    inline-flex;
  align-items: center;
  gap:        4px;
}

/* ═══════════════════════════════════════
   Animations - الحركات
═══════════════════════════════════════ */
@keyframes fadeIn {
  from {
    opacity:   0;
    transform: translateY(20px);
  }
  to {
    opacity:   1;
    transform: translateY(0);
  }
}

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

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

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.product-card {
  animation: fadeIn 0.4s ease forwards;
}

/* ═══════════════════════════════════════
   Responsive - الاستجابة للشاشات
═══════════════════════════════════════ */
@media (max-width: 992px) {
  .admin-sidebar {
    width:      100%;
    height:     auto;
    min-height: unset;
    position:   relative;
  }

  .admin-main {
    margin-right: 0;
  }

  .hero-image-wrap {
    display: none;
  }

  .search-bar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .stat-card {
    flex-direction: column;
    text-align:     center;
  }

  .product-img-wrap {
    height: 180px;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .footer-top .row > div {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 450px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .category-card {
    height: 160px;
  }

  .admin-header {
    padding: 0.8rem 1rem;
  }

  .stat-num {
    font-size: 1.4rem;
  }
}

@media (min-width: 992px) {
  .search-bar {
    display: flex !important;
  }
}
