/* استخدام خط Tajawal الجميل للعربية وتحسين الألوان والتصميم */
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap");

* {
  font-family: "Tajawal", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #8b5cf6;
  --success-color: #10b981;
  --telegram-color: #0088cc;
  --bg-dark: #0f0f23;
  --bg-card: #1a1a2e;
  --bg-card-hover: #252541;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 32px rgba(99, 102, 241, 0.3);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-bg: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
}

body {
  background: var(--gradient-bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}
/* تحسين تصميم Navbar */
.navbar {
  backdrop-filter: blur(20px);
  background: rgba(15, 15, 35, 0.95) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 900;
  font-size: 1.75rem !important;
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light) !important;
}

/* تحسين Hero Section */
.hero-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  padding: 4rem 0 !important;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0.5;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-section .display-4 {
  font-weight: 900;
  font-size: 3rem;
  letter-spacing: -1px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  font-size: 1.35rem;
  font-weight: 500;
  opacity: 0.95;
}

/* تحسين Feature Badges */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1.05rem;
}

.feature-badge:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* تحسين تصميم البطاقات */
.category-card,
.product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.category-card:hover,
.product-card:hover {
  box-shadow: var(--shadow-primary);
  border-color: var(--primary-color);
  background: var(--bg-card-hover);
}

.category-card img,
.product-card img {
  object-fit: cover;
  width: 100%;
}

.category-card img {
  height: 180px;
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card img {
  height: 220px;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

/* تحسين ألوان الأسعار لتكون أكثر وضوحاً */
.price-badge {
  font-size: 1.35rem;
  font-weight: 800;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.price-badge.text-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white !important;
}

.price-badge.text-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white !important;
}

.price-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* تحسين شارات الأسعار */
.price-badge {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  display: inline-block;
  box-shadow: var(--shadow-md);
}

/* تحسين الأزرار */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1.05rem;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.btn-add-cart {
  background: var(--gradient-primary);
  color: white;
  width: 100%;
  font-weight: 700;
}

.btn-add-cart:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-primary);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-light);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* تحسين تصميم حقول الاختيار (select, radio, checkbox) */
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--border-color);
  color: var(--text-primary) !important;
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-color);
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f8fafc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 16px 12px;
  padding-left: 2.5rem;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 0.75rem;
  font-weight: 500;
}

.form-select:hover {
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.1);
}

/* تحسين زر تيليجرام */
.telegram-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border: 3px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  cursor: pointer;
}

.telegram-btn:hover {
  transform: scale(1.15) translateY(-4px) rotate(5deg);
  box-shadow: 0 12px 32px rgba(0, 136, 204, 0.7);
  color: white !important;
  border-color: rgba(255, 255, 255, 0.4);
}

.telegram-btn:active {
  transform: scale(1.05) translateY(-2px);
}

.telegram-btn i {
  animation: telegramPulse 2s ease-in-out infinite;
}

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

/* تحسين النماذج */
.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f8fafc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 16px 12px;
  padding-left: 2.5rem;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 0.75rem;
}

.form-label {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* تحسين الجداول */
.table {
  color: var(--text-primary);
  border-radius: 12px;
  overflow: hidden;
}

.table-dark {
  --bs-table-bg: var(--bg-card);
  --bs-table-border-color: var(--border-color);
}

.table thead th {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-bottom: 2px solid var(--primary-color);
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

/* تحسين Modal */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
}

.modal-title {
  font-weight: 700;
  font-size: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem;
}

/* تحسين Card العامة */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  background: rgba(99, 102, 241, 0.1);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1.25rem;
}

/* تحسين شعارات طرق الدفع */
.payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.payment-logo {
  height: 60px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.payment-item:hover .payment-logo {
  transform: scale(1.1) translateY(-4px);
  box-shadow: var(--shadow-primary);
  border-color: var(--primary-color);
  background: rgba(99, 102, 241, 0.15);
}

.payment-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.3s ease;
}

.payment-item:hover .payment-name {
  color: var(--primary-light);
  transform: translateY(-2px);
}

/* تحسين Breadcrumb */
.breadcrumb {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "←";
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--primary-light);
  text-decoration: none;
  transition: all 0.3s ease;
  padding-right: 10px;
  padding-left: 10px;
}

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

/* تحسين شاشات التحميل */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 1.5rem;
  transition: opacity 0.3s ease;
}

.loading-spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* إضافة تنسيقات السلايدر */
.carousel-slide {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0.8;
}

.carousel-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 2rem;
  animation: slideUp 0.6s ease-out;
}

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

.carousel-content h3 {
  font-size: 2rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
  font-size: 1.15rem;
  opacity: 0.95;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.3);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
  right: 15px;
  left: auto;
}

.carousel-control-next {
  left: 15px;
  right: auto;
}

/* تحسين Footer */
footer {
  background: var(--bg-dark) !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 3rem 0 !important;
}

footer h5 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

footer p,
footer a {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

/* تحسين Alerts */
.alert {
  border-radius: 12px;
  padding: 1.25rem;
  font-weight: 500;
  border: none;
  box-shadow: var(--shadow-sm);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-left: 4px solid #ef4444;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-left: 4px solid #10b981;
}

.alert-info {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  border-left: 4px solid #6366f1;
}

/* تحسين Badge */
.badge {
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 0 !important;
  }

  .hero-section .display-4 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-section .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem !important;
  }

  .feature-badge {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  .feature-badge i {
    font-size: 1.1rem !important;
  }

  .payment-logo {
    height: 45px;
    max-width: 70px;
    padding: 8px;
  }

  .payment-name {
    font-size: 0.75rem;
  }

  .category-card {
    border-radius: 12px;
  }

  .category-card img {
    height: 110px;
  }

  .category-card .card-body {
    padding: 1rem;
  }

  .category-card .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-card img {
    height: 150px;
  }

  .product-card .card-body {
    padding: 1rem;
  }

  .product-card .card-title {
    font-size: 1rem;
  }

  .telegram-btn {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
    bottom: 16px;
    left: 16px;
    border-width: 2px;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .btn-add-cart {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
  }

  .price-badge {
    font-size: 1.1rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
  }

  .carousel-slide {
    height: 200px;
  }

  .carousel-content {
    padding: 1.5rem;
  }

  .carousel-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem !important;
  }

  .carousel-content p {
    font-size: 0.9rem;
  }

  .carousel-content i {
    font-size: 2.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 36px;
    height: 36px;
  }

  .carousel-indicators button {
    width: 10px;
    height: 10px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .card {
    border-radius: 12px;
  }

  .card-header {
    font-size: 1.1rem;
    padding: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-brand {
    font-size: 1.4rem !important;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem !important;
  }

  footer {
    padding: 2rem 0 !important;
  }

  footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  footer p,
  footer a {
    font-size: 0.95rem;
  }

  .breadcrumb {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .alert {
    padding: 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .loading-spinner {
    width: 3rem;
    height: 3rem;
    border-width: 3px;
  }

  .loading-text {
    font-size: 1.1rem;
  }

  .btn-check + .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  #categoriesContainer {
    gap: 0.75rem !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.3rem !important;
  }

  .hero-section {
    padding: 2rem 0 !important;
  }

  .hero-section .display-4 {
    font-size: 1.5rem;
  }

  .hero-section .lead {
    font-size: 0.95rem;
  }

  .feature-badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
  }

  .category-card img {
    height: 100px;
  }

  .product-card img {
    height: 140px;
  }

  .telegram-btn {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    bottom: 12px;
    left: 12px;
  }

  .carousel-slide {
    height: 180px;
  }

  .carousel-content h3 {
    font-size: 1.2rem;
  }

  .carousel-content p {
    font-size: 0.85rem;
  }

  .carousel-content i {
    font-size: 2rem !important;
  }

  .price-badge {
    font-size: 1rem;
    padding: 0.35rem 0.75rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.55rem 0.9rem;
  }

  .card-title {
    font-size: 0.95rem;
  }

  footer h5 {
    font-size: 1rem;
  }

  footer p,
  footer a {
    font-size: 0.9rem;
  }

  #categoriesContainer {
    gap: 0.6rem !important;
  }
}

/* تحسينات للشاشات الكبيرة جداً (> 1400px) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .hero-section .display-4 {
    font-size: 3.5rem;
  }

  .category-card img {
    height: 200px;
  }

  .product-card img {
    height: 240px;
  }
}

/* تحسينات للشاشات المتوسطة (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-section .display-4 {
    font-size: 2.5rem;
  }

  .category-card img {
    height: 160px;
  }

  .product-card img {
    height: 200px;
  }

  .feature-badge {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
  }
}

/* تحسينات للتابلت (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    padding: 3rem 0 !important;
  }

  .hero-section .display-4 {
    font-size: 2.25rem;
  }

  .hero-section .lead {
    font-size: 1.15rem;
  }

  .feature-badge {
    font-size: 0.9rem;
    padding: 0.7rem 1.15rem;
  }

  .category-card img {
    height: 140px;
  }

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

  .navbar-brand {
    font-size: 1.5rem !important;
  }

  .carousel-slide {
    height: 240px;
  }

  .carousel-content h3 {
    font-size: 1.75rem;
  }

  .payment-logo {
    height: 50px;
    max-width: 80px;
  }

  .telegram-btn {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }
}

/* تحسينات شاملة للهواتف (< 768px) */
@media (max-width: 767px) {
  /* تحسين المسافات العامة */
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .py-4 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* تحسين Container */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* تحسين العناوين */
  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.15rem;
  }

  h5 {
    font-size: 1.05rem;
  }

  /* تحسين الجداول على الهاتف */
  .table {
    font-size: 0.85rem;
  }

  .table thead th,
  .table tbody td {
    padding: 0.65rem;
  }

  /* تحسين الـ Grid */
  .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  /* تحسين الأزرار في المجموعات */
  .btn-group .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  /* تحسين الـ Input Groups */
  .input-group {
    flex-wrap: nowrap;
  }

  .input-group .btn {
    white-space: nowrap;
  }

  /* تحسين الـ Badges */
  .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }

  /* تحسين الـ Breadcrumb */
  .breadcrumb-item {
    font-size: 0.85rem;
  }

  /* تحسين الـ Pagination */
  .pagination {
    font-size: 0.85rem;
  }

  .page-link {
    padding: 0.4rem 0.65rem;
  }
}

/* تحسينات للهواتف الصغيرة جداً (< 400px) */
@media (max-width: 399px) {
  .navbar-brand {
    font-size: 1.2rem !important;
  }

  .hero-section {
    padding: 1.75rem 0 !important;
  }

  .hero-section .display-4 {
    font-size: 1.35rem;
  }

  .hero-section .lead {
    font-size: 0.9rem;
  }

  .feature-badge {
    font-size: 0.75rem;
    padding: 0.45rem 0.75rem;
    gap: 0.4rem;
  }

  .feature-badge i {
    font-size: 1rem !important;
  }

  .category-card img {
    height: 90px;
  }

  .product-card img {
    height: 130px;
  }

  .card-body {
    padding: 0.85rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-text {
    font-size: 0.85rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }

  .price-badge {
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
  }

  .carousel-slide {
    height: 160px;
  }

  .carousel-content {
    padding: 1rem;
  }

  .carousel-content h3 {
    font-size: 1.1rem;
  }

  .carousel-content p {
    font-size: 0.8rem;
  }

  .carousel-content i {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 32px;
    height: 32px;
  }

  .telegram-btn {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    bottom: 10px;
    left: 10px;
  }

  .payment-logo {
    height: 40px;
    max-width: 60px;
    padding: 6px;
  }

  .payment-name {
    font-size: 0.7rem;
  }

  footer {
    padding: 1.5rem 0 !important;
  }

  footer h5 {
    font-size: 0.95rem;
  }

  footer p,
  footer a {
    font-size: 0.85rem;
  }

  .modal-dialog {
    margin: 0.5rem;
  }

  .form-control,
  .form-select {
    font-size: 0.9rem;
    padding: 0.65rem 0.9rem;
  }

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

/* تحسين Landscape Mode للهواتف */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    padding: 1.5rem 0 !important;
  }

  .carousel-slide {
    height: 180px;
  }

  .navbar {
    padding: 0.5rem 0;
  }

  .telegram-btn {
    width: 48px;
    height: 48px;
    bottom: 10px;
    left: 10px;
  }

  footer {
    padding: 1.5rem 0 !important;
  }
}

/* تحسين Print Styles */
@media print {
  .navbar,
  .telegram-btn,
  .carousel,
  footer,
  .btn,
  .loading-overlay {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
}

/* تحسين Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

/* تحسين Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tailswind CSS styles */
