/* main.css */

/* Layout: sidebar + content */
.catalog-container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* FILTER SIDEBAR */
#filters {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
#filters .filter-group {
  width: 100%;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}
#filters .filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
#filters .search-group input {
  width: 100%;
}
#filters .button-group {
  margin-top: auto;
}

/* THUMBNAILS GRID (content area) */
#thumbnails {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

/* THUMBNAIL CARD */
.thumb-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  position: relative;
}
.thumb-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.thumb-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.thumb-img-container {
  width: 100%;
  padding-bottom: 100%; /* square aspect */
  position: relative;
  background: #fafafa;
}
.thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumb-name {
  padding: 0.5rem;
  font-weight: bold;
  text-align: center;
  font-size: 0.95rem;
  color: #222;
}
.thumb-label {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 1;
}

/* hide the badge container if there’s no text */
.thumb-label:empty {
  display: none;
}

/* ========================================================================== 
   MAIN PAGE: MULTI-SELECT DROPDOWNS, BUTTONS, OTHER RULES
   ========================================================================== */
.multi-dropdown-menu {
  display: block !important;
  position: static;
  border: none;
  box-shadow: none;
  max-height: none;
  overflow: visible;
  padding: 0;
}
.multi-dropdown-btn {
  background: none;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  width: 100%;
  padding: 0;
  margin: 0;
  cursor: default;
}
.multi-dropdown-menu label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
```css
/* common.css */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; background:#f9f9f9; color:#333; line-height:1.5; padding:20px; }
h1 { font-size:2rem; margin-bottom:1rem; color:#222; }