/* src/assets/css/store.css */

.store-layout {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.filters-sidebar {
  width: 260px;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  height: fit-content;
}

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

.filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.filter-group select,
.filter-group input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.products-area {
  flex: 1;
}

.sort-bar {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-table th,
.product-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.product-table th {
  background-color: #f2f2f2;
  font-weight: 600;
}

.product-table tbody tr:hover {
  background-color: #fafafa;
}

.product-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge.sale {
  background: #ff6b6b;
  color: white;
}

.badge.out-of-stock {
  background: #ccc;
  color: #333;
}

.btn {
  padding: 0.5rem 1rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn:hover {
  background: #555;
}

#no-results {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .store-layout {
    flex-direction: column;
  }
  .filters-sidebar {
    width: 100%;
  }
}


/* Warning text adjustment */

.warning-text > p {
  margin-bottom: 0;
}

.warning-text {
  margin-left: 0.5rem;
}

.alert {
  margin-bottom: 0;
}

.warning-text > ul {
  margin-bottom: 0;
}

.me-2 {
    margin-left: 1.2rem;
}

/* make dropdown button look like other stuff */
div.d-flex.justify-content-between.align-items-center.mb-3 .dropdown .btn {
  background-color: transparent;
  color: black;
  border: solid 1px rgba(0, 0, 0, 0.156);
}