body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

/* Top bar styling */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f4f4f4;
    padding: 10px;
}

.logo {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-left: 20px;
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: center;
    background-color: #4a90e2;
    padding: 5px 0;
    font-size: 1.3em;
}
nav a {
    color: #fff;
    margin: 0 25px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #ffd700;
}


nav {
  width: 100%;
  background-color: #4a90e2;
  color: white;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.2rem; /* adjust this as needed */
}


/* Main content styling */
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px 20px;
}

/* Headings */
h1, h2, h3 {
    font-family: Arial, sans-serif;
}

/* Remove default margin and padding for h1 and eliminate top whitespace */
h1 {
    text-align: center;
    padding: 20px 0;
    margin: 0; /* ensures no extra space at top */
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* Product Table */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 15px;
    text-align: center;
}
th {
    background-color: #f8f8f8;
}

/* Buttons general style */
button {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #ffd700;
}

/* Inputs */
input[type="number"], input[type="text"], textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive styles */
@media(max-width: 1024px){
  .product {
    flex: 1 1 calc(33% - 15px);
    max-width: calc(33% - 15px);
  }
  .product:nth-child(3n) {
    margin-right: 0;
  }
}
@media(max-width: 768px){
  .product {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
  .product:nth-child(2n) {
    margin-right: 0;
  }
}
@media(max-width: 600px){
  .product {
    flex: 1 1 calc(75% - 15px);
    max-width: calc(75% - 15px);
  }
  .product:nth-child(2n) {
    margin-right: 0;
  }
}
@media(max-width: 480px){
  .product {
    flex: 1 1 100%;
    max-width: 100%;
    margin-right: 0; /* no margin needed on full width */
  }
}

/* Product Page Styles */
.product-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff; /* optional background */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Product Image styling with controlled bottom spacing */
.product-page .product-image {
    max-width: 100%;
    width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 10px; /* reduced spacing for tighter image spacing */
}


/* Product Price */
.product-page .product-price {
    font-size: 1.3em;
    font-weight: bold;
    margin: 10px 0;
}

/* Form styles within product page */
.product-page .product-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.product-page .product-form label {
    font-weight: normal;
    font-size: 1.3em;
}
.product-page .product-form input[type="number"] {
    width: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
