* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Times New Roman';
  background-color: #021323;
  background-image: url("images/background2.jpg");
}

/* Light Mode */
body[data-theme="light"] {
  background-image: url("images/background\ light.png");
  color: #000;
}
body[data-theme="light"] header,
body[data-theme="light"] footer {
  background-color: #f1f1f1;
}
body[data-theme="light"] .mode-btn {
  color: #fff;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px;
  background-color: #021023;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  z-index: 1000;
}

/* Logo */
.logo img {
  height: 50px;
  width: auto;
}

/* Navigation */
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: #736f7e;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

nav a:hover {
  color: #e4da2b;
}

/* Toggle Button */
/* Menu Toggle Button */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
body[data-theme="light"] .menu-icon span {
  background-color: #333;
}
/* الزرار في الوضع العادي (دارك مود) */
.mode-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(45deg, #021023, #0c1b61); /* خلفية غامقة */
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* لما يبقى في اللايت مود تتغير الخلفية */
body[data-theme="light"] nav.active {
  background-color: #f1f1f1; /* فاتح */
}

/* الزرار في الوضع الفاتح (Light Mode) */
body[data-theme="light"] .mode-btn {
  background: linear-gradient(45deg, #ddd, #fff); /* خلفية فاتحة */
  color: #000; /* كتابة غامقة */
  border: 1px solid #999;
}


/* Main Title */
.main-title {
  text-align: center;
  font-size: 40px;
  color: black;
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Products Container */
.container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 30px;
  justify-content: center;
}
.product {
  background-color: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 30%;
  align-items: center;
  text-align: center;
}
.product img {
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}
.product h2 {
  margin: 10px 0;
  color: #444;
}
.product p {
  font-size: 18px;
  color: #666;
  margin-bottom: 10px;
}
.led-color {
  padding: 5px;
  margin-bottom: 10px;
}
.quantity-control {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  justify-content: center;
}
.quantity-control button {
  background-color: #1167b1;
  color: white;
  padding: 5px 10px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
}
.quantity-control span.quantity {
  margin: 0 10px;
  font-size: 18px;
}
.add-to-cart {
  background-color: #1167b1;
  color: white;
  padding: 8px 15px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}
.add-to-cart:hover {
  background-color: #888;
}
.message {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
}
.cart-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 36px;
  text-decoration: none;
}

/* Footer */
footer {
  position: sticky;
  left: 0;
  top: 100%;
  width: 100%;
  background-color: #021023;
  font-family: sans-serif;
  margin-top: auto;
}
.footer_top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding-top: 6px;
  padding-bottom: 6px;
}
footer a {
  color: #736f7e;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}
footer a:hover {
  color: #e4da2b;
}
footer p {
  color: #736f7e;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
}

/* ------------------- Responsive Design ------------------- */

@media (max-width: 768px) {
   nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #021023;
    margin-top: 10px;
    padding: 10px 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 10px 20px;
    border-top: 1px solid #444;
  }

  header {
    align-items: flex-start;
  }


   .mode-btn {
    width: 100%;
    text-align: center;
  }
  .product {
    width: 80%;
  }
  .menu-toggle {
    display: block;
  }

  .main-title {
    font-size: 30px;
  }
}
