/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  font-size: 1rem;
  color: #2f2f2f;
  min-height: 100vh;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: auto;
  padding: 1rem 0;
}

/* Category Section */
.scroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
  overflow-y: auto;
  max-height: 250px;
  padding: 1rem;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #ffffff;
}

.icon-item {
  text-align: center;
  font-size: 0.8rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.icon-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.1rem;
}

.icon-item:hover {
  background-color: #5cb85c;
  color: #fff;
}

/* Search Section */
.search {
  width: 88%;
  margin: auto;
  display: flex;
  gap: 0.5rem;
}

.search input[type="text"] {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.search button {
  padding: 0.6rem 1.2rem;
  background-color: #b58e4c;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Product Section */
.products h4 {
  margin-bottom: 1rem;
}

#product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row on large screens */
  gap: 1rem;
}

/* Responsive Product Grid */
@media (max-width: 1024px) {
  #product-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product Item */
.product-item {
  border-radius: 8px;
  background: #fff;
  padding: 0.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.product-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image-wrapper {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.product-item h5 {
  font-size: 1rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.product-item p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  color: #555;
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 2rem 0;
}

.pagination .step-links {
  display: inline-flex;
  gap: 0.75rem;
}

.pagination a {
  color: #5cb85c;
  font-weight: bold;
}

.pagination .current {
  font-weight: bold;
}

/* blank-dash */
.blank-dash img{
  width: 100%;
}


/* Forms (Add/Edit Product, Create Store) */
.form-wrapper {
  background: #ffffff;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.submit-btn {
  background-color: #5cb85c;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: block;
  margin: 1rem auto 0;
}

/* Product Detail Page */
.product-detail {
  background: #ffffff;
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 8px;
  max-width: 1000px;
  margin: 2rem auto;
}

.product-detail img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-detail h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #4e944f;
}

.product-detail p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 2rem;
  border: 1px solid #ddd;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.order-btn {
  background-color: #5cb85c;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
}


/* Notifications */
.notification-icon {
  position: relative;
  display: inline-block;
}

.notification-item{
  margin: 8px;
  padding: 8px;
  border: 1px solid #f3f3f3;
  border-radius: 4px;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 10px;
  display: none; /* hidden by default */
}

/* transactions */
