
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  background: #fff;
}
.rg-header {
  padding: 24px 16px;
  border-bottom: 1px solid #eee;
}
h1 { margin: 0 0 8px; font-size: 24px; }
.rg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  border: 1px solid #ddd;
  background: #f9f9f9;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.filter-btn.is-active { border-color: #111; background: #fff; }
.status { display: flex; align-items: center; gap: 10px; }
#slotCounter { font-weight: 600; }
.secondary {
  background: #fff;
  border: 1px solid #ccc;
}
.rg-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
}
.slot {
  border: 2px dashed #ddd;
  border-radius: 10px;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #fafafa;
}
.slot.filled { border-style: solid; background: #fff; }
.slot img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #eee;
}
.slot .slot-text {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.slot .remove {
  position: absolute;
  top: 6px; right: 6px;
  border: none; background: #eee; border-radius: 6px;
  width: 28px; height: 28px; cursor: pointer;
}
.rg-actions {
  display: flex; gap: 12px; align-items: center;
  padding: 8px 16px 0;
}
#addToCart {
  background: #111; color: #fff;
  border: 1px solid #111;
  padding: 10px 14px; border-radius: 8px; cursor: pointer;
}
#addToCart:disabled, #copyNote:disabled {
  opacity: .5; cursor: not-allowed;
}
.hint { color: #666; }
.rg-gallery {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.card {
  border: 1px solid #eee; border-radius: 12px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f1f1f1;
}
.card .meta {
  padding: 10px 12px; display: flex; flex-direction: column; gap: 4px;
}
.meta .name { font-weight: 600; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; padding: 2px 6px; border-radius: 999px; border: 1px solid #eee; }
.badge.core { background: #fff7e0; border-color: #f3d27a; }
.badge.seasonal { background: #e8fbfb; border-color: #75d6d6; }
@media (min-width: 768px) {
  .rg-gallery { grid-template-columns: repeat(4, 1fr); }
}
