صحح css.style
/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #fff;
  color: #333;
  line-height: 1.6;
}


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

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0a3d62;
  z-index: 1000;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* إذا الشاشة صغيرة ينزل المحتوى لسطر ثاني */
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: white; /* ← يغير اللون للأبيض */
}


header nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.cart-icon {
  background: #0a3d62;
  padding: 5px 10px;
  border-radius: 8px;
  color: white;
}

body {
  padding-top: 80px; /* نفس ارتفاع الـheader */
}

header h1 {
   
  font-size: 2.2rem;
  font-weight: bold;
  cursor: default;
}

/* نسخة الحاسوب على الجوال */
body.desktop-view {
  zoom: 1; /* يمكن تعديل لتكبير أو تصغير */
}

/* إعادة ترتيب الهيدر */
body.desktop-view .header-container {
  flex-direction: row !important;
  justify-content: space-between !important;
}

/* إظهار قوائم nav حتى لو كانت صغيرة الشاشة */
body.desktop-view nav ul {
  display: flex !important;
  gap: 20px;
}

/* إعادة ترتيب تفاصيل الكتب */
body.desktop-view .book-detail {
  flex-direction: row !important;
  gap: 40px;
}

/* صورة الكتاب أكبر */
body.desktop-view .book-detail img {
  max-width: 25% !important;
}



nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

nav ul li a {
  color: white;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #1e90ff;
}

main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

footer {
  clear: both;
  background-color: #0a3d62;
  color: #bdc3c7;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
  margin-top: 60px;
}

/* Bannière */
.banner {
  background: url('https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExOG93eWdsNHI2cDExZmV0enFuMWtjN3Bpd3BvNnVyMGZ1endweDQwcSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/fuCvFFrXtPmMuccJxU/giphy.gif') no-repeat center center/cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
 
}

/* Catégories */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.category-card {
  background: #f7f9fc;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 15px;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-card img {
  width: 100%;
  max-width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #0a3d62;
}

.category-card h3 {
  font-size: 1.3rem;
  color: #0a3d62;
  font-weight: 700;
}

/* Livres */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.book-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.book-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.book-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-bottom: 3px solid #0a3d62;
}

.book-info {
  padding: 15px 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-info h4 {
  font-size: 1.1rem;
  color: #0a3d62;
  margin-bottom: 10px;
  font-weight: 700;
}

.book-info p {
  font-weight: 700;
  color: #27ae60;
  font-size: 1rem;
  margin-bottom: 12px;
}

.book-info a {
  align-self: flex-start;
  padding: 8px 16px;
  background-color: #0a3d62;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.book-info a:hover {
  background-color: #1e90ff;
}

/* Titres */
h2 {
  font-size: 2rem;
  color: #0a3d62;
  margin-bottom: 25px;
  border-bottom: 3px solid #1e90ff;
  display: inline-block;
  padding-bottom: 5px;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
  }
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  position: relative; /* <-- مهم */
  bottom: 0;
}

.pagination a {
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 18px;
  color: #333;
  background-color: #f8f8f8;
  transition: background-color 0.3s ease;
}

.pagination a:hover {
  background-color: #ddd;
}


}


 