/* Basic styles for the STEB.IO front‑end */
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f6f7fb;
  color: #333;
}

nav#nav {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#app-title {
  font-weight: bold;
  font-size: 1.2em;
}

#messages {
  padding: 10px 20px;
  color: #d32f2f;
}

form {
  margin-bottom: 20px;
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

input,
textarea,
select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  box-sizing: border-box;
}

button {
  padding: 8px 14px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95em;
}

button:hover {
  background-color: #0056b3;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.card {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 4px;
  background: #fff;
  width: calc(33% - 10px);
  box-sizing: border-box;
}

.card h4 {
  margin: 0 0 10px 0;
}

#seller-section form,
#dashboard form {

/* Updated sticky navigation */
nav#nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #111;
  color: #fff;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigation group layouts */
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}
.nav-left {
  gap: 20px;
}
.nav-left a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-left a:hover {
  text-decoration: underline;
}
.nav-right {
  gap: 10px;
}
#app-title {
  font-weight: bold;
  font-size: 1.4rem;
}

/* Hero section */
#hero {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #fff;
}
#hero h1 {
  font-size: 2.5rem;
  margin: 0 0 10px 0;
}
#hero p {
  font-size: 1.2rem;
  margin: 0 0 20px 0;
}
.hero-search {
  display: flex;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}
.hero-search input {
  flex: 1;
  padding: 10px;
  font-size: 1rem;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.hero-search button {
  padding: 10px 20px;
  border: none;
  background-color: #10b981;
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1rem;
}
.hero-search button:hover {
  background-color: #059669;
}

/* Category bar */
.category-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
  background-color: #f0f1f5;
}
.category-bar button {
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #333;
  transition: background-color 0.2s, color 0.2s;
}
.category-bar button.active {
  background-color: #4f46e5;
  color: #fff;
}
.category-bar button:hover {
  background-color: #e5e7eb;
}

/* Statistics row */
.stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  padding: 0 20px;
}
.stat-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  min-width: 120px;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
}
.stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* Controls for sorting */
.controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
}
.controls label {
  font-size: 0.9rem;
  color: #555;
}
.controls select {
  padding: 6px 10px;
  font-size: 0.9rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-image {
  background-color: #e2e8f0;
  height: 150px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.product-card h4 {
  margin: 0 0 10px 0;
}
.product-card p {
  margin: 0 0 8px 0;
  line-height: 1.4;
}
.product-meta {
  font-size: 0.85rem;
  color: #666;
  margin-top: auto;
  margin-bottom: 10px;
}

  background: #fdfdfd;
}
