/* General Reset */
body, h1, h2, h3, p, ul, li, input, select, textarea, button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #fff;
  color: #333;
  line-height: 1.5;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #b22222; /* darker red */
  color: white;
  flex-wrap: wrap;
}

.header .left {
  text-align: left;
}

.header .right {
  text-align: right;
}

.header button {
  background-color: #ffd700; /* yellow highlight */
  color: #b22222;
  border: none;
  padding: 8px 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

/* Navigation */
.nav {
  background: #8b0000; /* slightly darker */
  text-align: center;
  padding: 10px 0;
}

.nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

.nav a:hover {
  text-decoration: underline;
}

/* Sections */
.section {
  padding: 40px 20px;
  border-bottom: 1px solid #eee;
}

.section h2 {
  margin-bottom: 15px;
  color: #b22222;
}

/* Product Cards */
.product-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.product-card {
  border: 1px solid #ddd;
  padding: 15px;
  background: #f9f9f9;
  width: 350px;
  border-radius: 8px;
  text-align: center;
}

.product-card img {
  width: 300px;
  height: 200px;
  object-fit: contain;
  background: #f9f9f9;
}

.product-card .price {
  color: #b22222;
  font-weight: bold;
  margin-top: 8px;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

/* Modal Styles */
.modal {
  display: none; 
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto; 
  padding: 20px;
  border: 2px solid #b22222;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
}

.modal-content h2 {
  color: #b22222;
}

.modal-content input, .modal-content select, .modal-content textarea, .modal-content button {
  width: 100%;
  margin: 8px 0;
  padding: 8px;
  font-size: 14px;
}

.modal-content button {
  background: #b22222;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.modal-content .close {
  color: #b22222;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

#staffLogin {
    background-color: #b22222;       /* red background */
    color: white;                     /* text color */
    font-family: Arial, sans-serif;   /* font */
    font-size: 16px;                  /* optional font size */
    padding: 10px 20px;               /* spacing inside button */
    margin: 8px 10px;                  /* spacing outside button */  
    border: none;                     /* remove default border */
    border-radius: 5px;               /* optional rounded corners */
    cursor: pointer;                  /* pointer on hover */
    text-align: center;               /* center text */
    display: inline-block;            /* block-like for spacing */
}

#staffLogin:hover {
    background-color: #8b1a1a;        /* slightly darker on hover */
}

/* Responsive */
@media(max-width: 770px) {
  .product-container {
    flex-direction: column;
    align-items: center;
  }

  .header {
    flex-direction: column;
    text-align: center;
  }

  .header .right {
    margin-top: 10px;
  }
}

/* Additional css for contact.html*/
form#contactForm,
form#enquiryForm {
  max-width: 500px;       /* optional: keep form narrow and neat */
  margin-top: 20px;
}

form#contactForm label,
form#enquiryForm label {
  display: block;          /* label on its own line */
  margin-bottom: 5px;      /* small space between label and input */
  font-weight: bold;       /* optional: make labels stand out */
}

form#contactForm input,
form#contactForm select,
form#contactForm textarea,
form#enquiryForm input,
form#enquiryForm select,
form#enquiryForm textarea {
  display: block;          /* input takes a new line */
  width: 100%;             /* full width for neat look */
  padding: 8px;
  margin-bottom: 15px;     /* space between fields */
  box-sizing: border-box;  /* padding doesn't break width */
  font-size: 1rem;
}

form#contactForm button,
form#enquiryForm button {
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
}

/* Staff Login Page */
.staff-login-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.staff-login-container {
  border: 2px solid #b22222;
  border-radius: 8px;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.staff-login-container h2 {
  color: #b22222;
  margin-bottom: 20px;
}

.staff-login-container input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Mobile Phones */
@media (max-width: 500px) {

  body {
    font-size: 14px;
  }

  /* Header */
  .header {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .header .left,
  .header .right {
    width: 100%;
    text-align: center;
  }

  .header button {
    width: 100%;
    margin-top: 10px;
  }

  /* Navigation */
  .nav {
    padding: 8px 0;
  }

  .nav a {
    font-size: 16px;
    display: block;
    margin: 8px 0;
  }

  /* Sections */
  .section {
    padding: 20px 15px;
  }

  /* Product Cards */
.product-container {
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}

.product-card {
  width: calc(50% - 10px);
  display: flex;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
  min-height: 340px;   /* keeps cards equal height */
}

.product-card img {
  width: 100%;
  height: 150px;       /* fixed image area */
  object-fit: contain; /* no crop */
  object-position: center; /* center image */
  background: #f9f9f9; /* optional: clean empty space */
}


  /* Forms */
  form#contactForm,
  form#enquiryForm {
    width: 95%;
  }

  form#contactForm button,
  form#enquiryForm button {
    width: 100%;
  }

  /* Staff Login */
  .staff-login-container {
    width: 95%;
    padding: 20px;
  }

  .staff-login-container input {
    font-size: 14px;
  }

  /* Modal */
  .modal-content {
    width: 85%;
    margin-top: 20%;
  }
}
