.select-control {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}

.inventory-list {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.inventory-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid rgba(80, 49, 32, .12);
  border-radius: var(--radius);
  background: rgba(255,255,255,.62);
}

.inventory-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(53,36,29,.18);
}

.inventory-color {
  min-width: 0;
}

.inventory-color strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 13px;
}

.inventory-color span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.inventory-count {
  min-width: 44px;
  text-align: right;
  color: var(--caramel-dark);
  font-size: 13px;
  font-weight: 900;
}

.template-section {
  margin: 6px 0 30px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.template-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,253,248,.86);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 1fr;
}

.template-card .thumb {
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.template-body {
  min-width: 0;
  padding: 13px;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.template-body h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.15;
}

.template-body p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.template-body .button {
  width: 100%;
  min-height: 38px;
}

@media (max-width: 1040px) {
  .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .template-card { grid-template-columns: 38% 1fr; }
}

@media (max-width: 560px) {
  .template-grid { grid-template-columns: 1fr; }
}
