/* ===============================  
   Reset & Base Styles  
=============================== */  
* {  
  margin: 0;  
  padding: 0;  
  box-sizing: border-box;  
  font-family: 'Poppins', sans-serif;  
}  
  
body {  
  background-color: #fff;  
  color: #333;  
  line-height: 1.6;  
}  
  
a {  
  text-decoration: none;  
  color: inherit;  
}  
  
img {  
  max-width: 100%;  
  display: block;  
}  
  
/* ===============================  
   Navbar & Header  
=============================== */  
header {  
  display: grid;  
  grid-template-columns: auto 1fr; /* اللوغو ياخد عرضه الطبيعي، الباقي للناف */  
  align-items: center;  
  padding: 10px 30px;  
  background-color: #fff0f6;  
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);  
  position: sticky;  
  top: 0;  
  z-index: 1000;  
  width: 100%;  
  gap: 20px;  
}  
  
header .logo {  
  width:150px;  
  transition: transform 0.3s ease;  
}  
  
header .logo:hover {  
  transform: scale(1.05);  
}  
  
.main-nav ul {  
  display: grid;  
  grid-auto-flow: column;  
  gap: 20px;  
  list-style: none;  
  white-space: nowrap; /* تمنع التفاف النص */  
}  
  
.main-nav ul li a {  
  position: relative;  
  text-decoration: none;  
  color: #555;  
  font-weight: 500;  
  font-size: 16px;  
  padding: 8px 10px;  
  transition: all 0.3s ease;  
}  
  
.main-nav ul li a:hover {  
  color: #f47fbf;  
}  
  
.main-nav ul li a::after {  
  content: '';  
  position: absolute;  
  width: 0%;  
  height: 3px;  
  bottom: -3px;  
  left: 0;  
  background-color: #f47fbf;  
  border-radius: 3px;  
  transition: width 0.3s ease;  
}  
  
.main-nav ul li a:hover::after,  
.main-nav ul li a.active::after {  
  width: 100%;  
}  
  
.main-nav ul li a.active {  
  color: #f47fbf;  
}  
  
.main-nav ul li a.active:hover {  
  color: #f47fbf;  
}  
  
/* ===============================  
   Responsive for small screens  
=============================== */  
@media (max-width: 768px) {  
  header {  
    grid-template-columns: auto 1fr;  
    gap: 10px;  
    padding: 0 2px;  
  }  
    
  .main-nav ul {  
    gap: 4px;  
  }  
  
  .main-nav ul li a {  
    font-size: 10px;  
    padding: 2px;  
  }  
}  
  



.container {max-width: 1100px; margin: 50px auto; padding: 20px;text-align: left;background: #fff8f5;}
    h1 {text-align: center; color: #ff6f91; margin-bottom: 10px;font-size: 24px;}
    .notebook-specs {border: 1px solid #ddd; padding: 15px; border-radius: 10px; background: #f9f9f9; width: 90%; margin: 20px auto 50px auto;}
    .notebook-specs h3 {margin-top: 0; font-size: 18px;}
    .notebook-specs ul {list-style-type: none; padding: 0; margin: 0; line-height: 1.6;}

.notebooks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 25px;
}

.notebook {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin:10px;
}

.notebook h2 {
  color: #6d3a7c;
}

.images {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 10px 0;
}

.images img {
  width:100px;
  height:100px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* Buy button */
.buy-btn {
  display: inline-block;
  text-align: center;
  margin: 20px 0;
}
.buy-btn img {
  width:60%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  margin:auto;
}
  
.buy-btn img:hover {
  transform: scale(1.05);
}


footer {
  background: #ffe0f7;
  padding: 10px;
  margin: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center; /* أو space-between لو عاوزاهم يبعدوا عن بعض */
  flex-wrap: wrap;
  gap: 10px; /* مسافة بين العناصر */
  font-size: 14px;
    border-top: 1px solid #ff6f91;
  text-align: left;
  color: #555;
}

footer a {
  text-decoration: none;
  color: inherit;
}
footer img {
  width: 20px;
  height: 20px;
}
/* قسم التعريف (About) */
.about-container {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff0f6;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(255, 111, 145, 0.2);
  color: #555;
  font-size: 0.8em;
  line-height: 1.6;
}

.about-logo {
  width: 100px;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  justify-self: start;
}

.about-text p {
  margin: 8px 0;
}