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


html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
  background-color: #0a0f1a;
  padding: 15px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #eb0029;
}

.logo a{text-decoration: none;
  outline: none;
  }

.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
  color: orange;
}

.cart-icon {
  font-size: 22px;
  color: white;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== Navbar Responsive ===== */
@media (max-width: 1024px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 20px;
    background-color: #0a0f1a;
    padding: 25px 35px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    width: 180px;
    text-align: left;
    animation: fadeIn 0.25s ease-in-out;
  }

  .nav a {
    margin: 12px 0;
    font-size: 18px;
  }

  .nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .cart-icon {
    margin-left: 10px;
  }
}

/* ===== Animation ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Background Image ===== */
.background-image {
  width: 100%;
  height: 430px;
  background: url("./image/checkout.jpeg");
  background-size: cover;
  background-repeat: round;
}

/* ===== Container ===== */
.container {
  max-width: 800px;
  margin: 50px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid black;
}

.container a {
  color: black;
}

/* ===== Shipping Section ===== */
.shipping-section {
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 5px;
  max-width: 400px;
  margin: 20px auto;
}

.shipping-section h3 {
  font-size: 20px;
  text-align: center;
  color: #333;
}

.shipping-section select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 10px;
}

.cost {
  margin-top: 10px;
}

/* ===== Inputs, Textareas, Buttons ===== */
input,
textarea,
button {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.place-order {
  background: #d6001c;
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  font-size: 16px;
}

/* ===== Table ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  border: 1px solid black;
  padding: 10px;
  text-align: left;
}

th {
  background: #f5f5f5;
  font-weight: bold;
}

.order-summary {
  padding: 10px 0;
}

.order-summary p {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  padding: 5px 0;
}

.total-amount {
  color: red;
}

.payment-options label {
  display: block;
  margin: 10px 0;
}

/* ===== Images ===== */
img {
  width: 60px;
  height: 60px;
  border-radius: 5px;
}

/* ===== Brick Text & Image Container ===== */
.image-brick-container {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.brick {
  color: black;
  font-weight: bold;
  font-size: 18px;
  flex: 1; /* النص ياخد المساحة المتاحة */
  text-align: left; /* جنب الصورة */
  margin: 0;
}

@media (max-width: 768px) {
  body > .container, 
  body > .background-image {
    transform: scale(0.9); /* يصغر المحتوى 90% */
    transform-origin: top center; /* منين يبدأ التصغير */
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .container {
    margin: 30px auto;
    padding: 15px;
  }

  .shipping-section {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
  }

  .shipping-section h3 {
    font-size: 18px;
  }

  .shipping-section select {
    font-size: 14px;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  th, td {
    font-size: 14px;
    padding: 8px;
  }

  input,
  textarea,
  button {
    font-size: 15px;
    padding: 12px;
  }

  .place-order {
    font-size: 16px;
    padding: 14px;
    border-radius: 8px;
  }

  img {
    width: 45px;
    height: 45px;
  }

  /* Brick نص تحت الصورة على الموبايل */
  .image-brick-container {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .brick {
    text-align: center;
    font-size: 16px;
  }
}

/* ===== Footer Responsive ===== */
@media (max-width: 1024px) {
  .footer-main {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    align-items: center;
    gap: 30px;
  }

  .footer-info,
  .footer-links,
  .footer-contact {
    width: 100%;
    margin-bottom: 0;
  }

  .footer-top-info {
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    gap: 25px;
  }

  .footer-top-info div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
    align-items: center;
    gap: 25px;
  }

  .footer-info,
  .footer-links,
  .footer-contact {
    width: 100%;
    margin-bottom: 0;
  }

  .footer-links ul li a {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-top-info {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
  }

  .footer-top-info div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-bottom {
    font-size: 14px;
    padding: 15px 10px;
  }

  .footer-bottom a {
    display: block;
    padding: 10px 0;
  }
}