body {
  display: flex;
  flex-direction: column;
  background-color: #f8f8f8;
  color: #333;
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

header {
  background-color: white;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  padding: 15px 0;
}

main {
  flex: 1;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer {
  padding: 40px 0;
  text-align: center;
  color: gray;
}

.logo-box {
  width: 35px;
  height: 35px;
  background-color: blue;
  color: white;
  font-weight: bold;
  text-align: center;
  line-height: 35px;
  border-radius: 5px;
  margin-right: 10px;
}

.link-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  background-color: blue;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  border-radius: 4px;
}

button {
  padding: 12px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background-color: #dbeafe;
  border-color: blue;
  color: blue;
}

input,
select,
option {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid gray;
  box-sizing: border-box;
}

.table-header-item {
  background-color: blue;
  color: white;
  border: 1px solid lightgray;
  padding: 10px;
  text-align: center;
}

.table-data-item {
  border: 1px solid lightgray;
  padding: 10px;
  text-align: center;
}

.auth-layout {
  background-color: rgb(248, 248, 248);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.auth-btn {
  background-color: blue;
  color: white;
  width: 100%;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  width: 100%;
  overflow: hidden;
  background: white;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.product-image {
  width: 100%;
  height: 230px;
  border-radius: 4px;
  margin-bottom: 10px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.product-name {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.product-store {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.product-category {
  font-size: 12px;
  color: #007bff;
  margin-bottom: 10px;
}

.product-price {
  font-size: 18px;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 10px;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  flex: 1;
}

.product-stock {
  font-size: 12px;
  color: #27ae60;
  margin-bottom: 10px;
}

.view-details-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.2s;
}

.view-details-btn:hover {
  background-color: #218838;
}

.category-section h2 {
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}
