* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
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;
}
/* Menu Toggle Button */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
/* 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;
}

body {
  background-image: url("images/background2.jpg");
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.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;
}

/* cart */
.cart-page {
  width: 90%;
  margin: 30px auto;
  background: #021023;
  padding: 30px;
  border-radius: 12px;
}

.cart-title {
  text-align: center;
  font-size: xx-large;
  color: #736f7e;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cart-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  background-color: rgba(245, 245, 245, 0.87);
  border-radius: 12px;
}

.cart-item h3 {
  font-size: x-large;
  color: #021023;
  margin-bottom: 5px;
}

.cart-item p {
  font-size: large;
  color: #666;
  margin: 3px 0;
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
/* remove */
.remove-btn {
  background-color: #e74c3c;
  color: white;
  cursor: pointer;
  font-size: 15px;
  padding: 8px 15px;
  border-radius: 12px;
  border: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.remove-btn:hover {
  background-color: #c0392b;
}
/* form */
.checkout-form {
  background: rgba(245, 245, 245, 0.87);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.checkout-form h2 {
  font-size: x-large;
  color: #021023;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: larger;
}
/* total */
.total-section {
  background: rgba(245, 245, 245, 0.87);
  padding: 25px;
  border-radius: 12px;
}

.summary h2 {
  font-size: x-large;
  color: #021023;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eee;
}

.summary-row.total {
  font-weight: bold;
  font-size: larger;
  color: #021023;
  border-bottom: none;
  padding-top: 10px;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
/* buttons */
.btn-primary,
.btn-secondary {
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: large;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background-color: #27ae60;
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: #f1f1f1;
  color: #333;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}
/* empty cart */
.empty-cart {
  text-align: center;
  padding: 50px 20px;
}

.empty-cart i {
  font-size: x-large;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-cart h2 {
  font-size: x-large;
  color: #555;
  margin-bottom: 10px;
}

.empty-cart p {
  color: #888;
  margin-bottom: 30px;
}

footer {
  background-color: #021023;
  font-family: sans-serif;
  margin-top: auto;
  width: 100%;
  padding: 20px 0;
}

.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;
}
/* light mode */
body[data-theme="light"] {
  background-image: url("images/background\\ light.png");
  background-color: #f5f5f5;
}

body[data-theme="light"] .cart-page,
body[data-theme="light"] .checkout-form,
body[data-theme="light"] .total-section {
  background-color: white;
}

body[data-theme="light"] .cart-title,
body[data-theme="light"] .checkout-form h2,
body[data-theme="light"] .summary h2,
body[data-theme="light"] .summary-row.total {
  color: #333;
}

body[data-theme="light"] header {
  background-color: #f1f1f1;
}
body[data-theme="light"] nav.active {
  background-color: #f1f1f1; 
}
body[data-theme="light"] .mode-btn {
  background: linear-gradient(45deg, #ddd, #fff); 
  color: #000; 
  border: 1px solid #999;
}
body[data-theme="light"] footer {
  background-color: #f1f1f1;
}
@media (max-width: 768px) {
 .menu-toggle {
    display: block;
  }

  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;
  }

  .cart-container {
    grid-template-columns: 1fr;
  }
   .mode-btn {
    width: 100%;
    text-align: center;
  }
}
