body {
  font-family: Arial, sans-serif;
  padding: 2rem;
}

#swatches {
  display: flex;
  flex-direction: column; /* Add this line */
  flex-wrap: wrap;
  gap: 1rem;
}

.swatch {
  width: 200px;
  min-height: 80px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px 6px 0 0;
  font-weight: bold;
  padding: 0;
  box-sizing: border-box;
  border: 2px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  margin-bottom: 0;
  background-clip: padding-box;
  position: relative; /* Needed for overlay positioning */
  overflow: hidden;
}

.swatch-reflect {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg,
      rgba(255,255,255,0.7) 0%,
      rgba(255,255,255,0.4) 10%,
      rgba(255,255,255,0.15) 18%,
      rgba(255,255,255,0.35) 28%,
      rgba(255,255,255,0.10) 38%,
      rgba(255,255,255,0.25) 48%,
      rgba(255,255,255,0.05) 60%,
      rgba(255,255,255,0.18) 70%,
      rgba(255,255,255,0.0) 100%
    );
  opacity: 0.95;
  border-radius: 6px 6px 0 0;
  mix-blend-mode: lighten;
}

.swatch-sparkle {
  pointer-events: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  z-index: 2;
}
.swatch-sparkle-star {
  position: absolute;
  color: #fffbe9;
  text-shadow: 0 0 6px #fff, 0 0 2px #fff, 0 0 1px #fff;
  opacity: 0.85;
  font-family: Arial, sans-serif;
  user-select: none;
  pointer-events: none;
  font-weight: bold;
}

.swatch-translucent {
  pointer-events: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 6px 6px 0 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.85) 100%);
  z-index: 2;
}

.swatch-info {
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 1em 0;
  background: none;
  border-radius: 6px 6px 0 0;
  font-size: 1.1em;
  position: relative;
  z-index: 3;
}

.swatch-details {
  background: rgba(0,0,0,0.08);
  color: #222;
  padding: 0.5em;
  border-radius: 0 0 4px 4px;
  text-align: center;
  width: 200px;
  margin-top: 0.2em;
  font-weight: normal;
  font-size: 0.95em;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand-group {
  background: #f3f3f6;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.brand-group h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.swatch-matte-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  background: rgba(0,0,0,0.18);
  color: #fff;
  font-size: 0.75em;
  font-weight: normal;
  padding: 2px 8px;
  border-radius: 8px;
  z-index: 4;
  pointer-events: none;
  letter-spacing: 1px;
}